-
Notifications
You must be signed in to change notification settings - Fork 428
Closed
Description
EIP here: ethereum/EIPs#3298
Simple Summary
Remove gas refunds for SSTORE and SELFDESTRUCT.
Motivation
Gas refunds for SSTORE and SELFDESTRUCT were originally introduced to motivate application developers to write applications that practice "good state hygiene", clearing storage slots and contracts that are no longer needed. However, they are not widely used for this, and poor state hygiene continues to be the norm. It is now widely accepted that the only solution to state growth is some form of statelessness or state expiry, and if such a solution is implemented, then disused storage slots and contracts would start to be ignored automatically.
Gas refunds additionally have multiple harmful consequences:
- Refunds give rise to GasToken. GasToken has benefits in moving gas space from low-fee periods to high-fee periods, but it also has downsides to the network, particularly in exacerbating state size (as state slots are effectively used as a "battery" to save up gas) and inefficiently clogging blockchain gas usage
- Refunds increase block size variance. The theoretical maximum amount of actual gas consumed in a block is nearly twice the on-paper gas limit (as refunds add gas space for subsequent transactions in a block, though refunds are capped at 50% of a transaction's gas used). This is not fatal, but is still undesirable, especially given that refunds can be used to maintain 2x usage spikes for far longer than EIP 1559 can.
kaleb-keny, ErikBjare, poojaranjan, rootslab, MohamedKiouaz and 6 morerleshner and kaleb-kenykaleb-keny, rootslab and ffidan61kaleb-keny and rootslabbryangreen, lucadonnoh, gakonst, kaleb-keny, kmbarry1 and 2 more
Metadata
Metadata
Assignees
Labels
No labels