Skip to content

Commit

Permalink
[Leveragelp]: bug fix (#823)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
cryptokage1996 authored Sep 25, 2024
1 parent 3f73fd7 commit deea1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/leveragelp/keeper/position_open.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit deea1c2

Please sign in to comment.