Skip to content

Commit

Permalink
Merge pull request #611 from elys-network/develop
Browse files Browse the repository at this point in the history
Leveragelp fixes (#610)
  • Loading branch information
Wgil authored Jun 24, 2024
2 parents 470e9ce + 04336dd commit 97fcc19
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 97fcc19

Please sign in to comment.