Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
phamminh0811 committed Jul 26, 2024
1 parent 4523ec5 commit 87437f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x/tax2gas/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ func CalculateTaxesAndPayableFee(gasPrices sdk.DecCoins, feeCoins sdk.Coins, tax
payableFees = payableFees.Add(totalFeeRequired)
gasRemaining = 0
return taxes, payableFees, gasRemaining
} else {
payableFees = payableFees.Add(feeCoin)
totalFeeRemaining := sdk.NewDecCoinFromCoin(totalFeeRequired.Sub(feeCoin))
gasRemaining = uint64(totalFeeRemaining.Amount.Quo(gasPrice).Ceil().RoundInt64())
}
payableFees = payableFees.Add(feeCoin)
totalFeeRemaining := sdk.NewDecCoinFromCoin(totalFeeRequired.Sub(feeCoin))
gasRemaining = uint64(totalFeeRemaining.Amount.Quo(gasPrice).Ceil().RoundInt64())
default:
return taxes, payableFees, gasRemaining
}
Expand Down

0 comments on commit 87437f1

Please sign in to comment.