Skip to content

Commit

Permalink
Merge pull request #73 from b-harvest/patch/coinswap
Browse files Browse the repository at this point in the history
chore: fix standard coin name
  • Loading branch information
poorphd authored Jul 25, 2024
2 parents d4c9382 + 778d29f commit 4923125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/coinswap/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (k Keeper) RemoveLiquidity(ctx sdk.Context, msg *types.MsgRemoveLiquidity)
deductUniCoin := msg.WithdrawLiquidity

if standardWithdrawCoin.Amount.LT(msg.MinStandardAmt) {
return nil, errorsmod.Wrap(types.ErrConstraintNotMet, fmt.Sprintf("iris amount not met, user expected: no less than %s, actual: %s", sdk.NewCoin(standardDenom, msg.MinStandardAmt).String(), standardWithdrawCoin.String()))
return nil, errorsmod.Wrap(types.ErrConstraintNotMet, fmt.Sprintf("standard coin amount not met, user expected: no less than %s, actual: %s", sdk.NewCoin(standardDenom, msg.MinStandardAmt).String(), standardWithdrawCoin.String()))
}
if tokenWithdrawCoin.Amount.LT(msg.MinToken) {
return nil, errorsmod.Wrap(types.ErrConstraintNotMet, fmt.Sprintf("token amount not met, user expected: no less than %s, actual: %s", sdk.NewCoin(minTokenDenom, msg.MinToken).String(), tokenWithdrawCoin.String()))
Expand Down

0 comments on commit 4923125

Please sign in to comment.