-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal to include EIP 3298 (removal of refunds) in London #255
Comments
Some possible alternative options to try to address some people's concerns around breaking economics for within-transaction approvals and other situations. Simpler solutionIn the case where More comprehensive solutionReplace the "refund" counter with two counters: (i) a |
I think an under appreciate benefit of removing this opcode is that it would make gas easier to estimate with most clients / wallets. My intuition behind this is that most clients do not check for refunds, as that context isnt available to the RPC endpoint. For reference , here is how Geth implements it |
@Genysys That is a definitely a benefit, but I wonder if you could get that in a different way. E.g., defi gas futures contracts. The downsides from the gas token exploit seems to outweigh this benefit. |
@Genysys I'm not sure I understand your comment. This EIP doesn't remove the entire opcode, just the refund that gets sent back at the end of execution. It is a step in that direction, though. |
I think @Genysys is talking about the economic incentive to remove opcode not the feature itself. |
Closing this as 3403 was noted as the prefered EIP on ACD108. |
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:
The text was updated successfully, but these errors were encountered: