From 7350c857dd6cd9dbe2ec0ba8fa5a17cc470e1d1c Mon Sep 17 00:00:00 2001 From: CryptoKage2306 <26vivek06@gmail.com> Date: Thu, 26 Sep 2024 04:15:47 +0530 Subject: [PATCH] fix --- x/leveragelp/keeper/position_open.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/leveragelp/keeper/position_open.go b/x/leveragelp/keeper/position_open.go index 3d198f0a8..ddc63c5c7 100644 --- a/x/leveragelp/keeper/position_open.go +++ b/x/leveragelp/keeper/position_open.go @@ -13,7 +13,7 @@ import ( func (k Keeper) OpenLong(ctx sdk.Context, msg *types.MsgOpen) (*types.Position, error) { // Initialize a new Leveragelp Trading Position (Position). - if msg.Leverage.LT(sdk.OneDec()) { + if msg.Leverage.LTE(sdk.OneDec()) { return nil, types.ErrLeverageTooSmall } position := types.NewPosition(msg.Creator, sdk.NewCoin(msg.CollateralAsset, msg.CollateralAmount), msg.AmmPoolId)