Skip to content

Commit

Permalink
fix: custom fee check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Jan 13, 2025
1 parent a348be0 commit 00a60d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/tax/keeper/custom_tx_fee_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (k Keeper) CustomTxFeeChecker(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, int64
gasLimitDec := sdkmath.LegacyNewDec(int64(gas))
minimumFeeRequiredInPaidDenom := gasLimitDec.Mul(minGasPrice).RoundInt()
// if the fee provided is greater than the minimum fee required in the paid denom, then it is accepted
if fee.Amount.GT(minimumFeeRequiredInPaidDenom) {
if fee.Amount.GTE(minimumFeeRequiredInPaidDenom) {
priority := getTxPriority(feeCoins, int64(gas))
return feeCoins, priority, nil
} else {
Expand Down

0 comments on commit 00a60d9

Please sign in to comment.