Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie committed Mar 25, 2022
1 parent 98a477b commit cbde59a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action/protocol/execution/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,10 @@ func executeInEVM(ctx context.Context, evmParams *Params, stateDB *StateDBAdapte
log.L().Debug("statedb error", zap.Error(stateDB.Error()))
}
if !london {
// Before EIP-3529: refunds were capped to gasUsed / 2
refund = (evmParams.gas - remainingGas) / params.RefundQuotient
} else {
// After EIP-3529: refunds are capped to gasUsed / 5
refund = (evmParams.gas - remainingGas) / params.RefundQuotientEIP3529
}
if refund > stateDB.GetRefund() {
Expand Down

0 comments on commit cbde59a

Please sign in to comment.