Skip to content

Commit

Permalink
Update gas_fees.go
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Jan 28, 2025
1 parent 52f3293 commit a55e5b2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions x/evm/keeper/gas_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ func (k *Keeper) RefundGas(

// gasToRefund calculates the amount of gas the state machine should refund to
// the sender.
//
// GAS REFUND
// If msg.Gas() > gasUsed, we need to refund extra gas.
// leftoverGas = amount of extra (not used) gas.
// If the msg comes from user, we apply refundQuotient capping the refund to 20% of used gas
// If msg is internal (funtoken), we refund 100%
//
// EIP-3529: refunds are capped to gasUsed / 5
func gasToRefund(availableRefundAmount, gasUsed uint64) uint64 {
refundAmount := gasUsed / params.RefundQuotientEIP3529
Expand Down

0 comments on commit a55e5b2

Please sign in to comment.