Skip to content

Commit

Permalink
fix: subtract the fee used in the expected amount of balance after wi…
Browse files Browse the repository at this point in the history
…thdraw > getting crazy in amounts calculation .-.
  • Loading branch information
RafilxTenfen committed Dec 19, 2024
1 parent e974b8b commit 629daa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/btc_rewards_distribution_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func CheckWithdrawReward(
require.True(t, delRewardGauge.Coins.IsAllPositive())

actualAmt := delBalanceAfterWithdraw.String()
expectedAmt := delBalanceBeforeWithdraw.Add(delRewardGauge.WithdrawnCoins...).Add(txResp.AuthInfo.Fee.Amount...).String()
expectedAmt := delBalanceBeforeWithdraw.Add(delRewardGauge.WithdrawnCoins...).Sub(txResp.AuthInfo.Fee.Amount...).String()
require.Equal(t, expectedAmt, actualAmt)
}

Expand Down

0 comments on commit 629daa5

Please sign in to comment.