Skip to content

Commit

Permalink
Leveragelp fixes (#610)
Browse files Browse the repository at this point in the history
fix leveragelp close
  • Loading branch information
jelysn authored Jun 24, 2024
1 parent 9a0225e commit 046475d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/leveragelp/keeper/position_close.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (k Keeper) ForceCloseLong(ctx sdk.Context, position types.Position, pool ty

userAmount := exitCoins[0].Amount.Sub(repayAmount)
positionOwner := sdk.MustAccAddressFromBech32(position.Address)
err = k.bankKeeper.SendCoins(ctx, positionOwner, position.GetPositionAddress(), sdk.Coins{sdk.NewCoin(position.Collateral.Denom, userAmount)})
err = k.bankKeeper.SendCoins(ctx, position.GetPositionAddress(), positionOwner, sdk.Coins{sdk.NewCoin(position.Collateral.Denom, userAmount)})
if err != nil {
return sdk.ZeroInt(), err
}
Expand Down

0 comments on commit 046475d

Please sign in to comment.