Skip to content
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-3198 in London #270

Closed
timbeiko opened this issue Mar 5, 2021 · 2 comments
Closed

Proposal to include EIP-3198 in London #270

timbeiko opened this issue Mar 5, 2021 · 2 comments

Comments

@timbeiko
Copy link
Collaborator

timbeiko commented Mar 5, 2021

During AllCoreDevs 107, EIP-1559 was accepted into London. EIP-3198 is a "companion EIP" to 1559, which exposes the BASE FEE as an opcode in the EVM.

@vbuterin
Copy link
Collaborator

vbuterin commented Mar 5, 2021

Some reasons why the BASEFEE opcode is useful:

  • It allows fraud proof systems or other systems that require someone to "ping" them to set a reward based on what the current basefee actually is, avoiding both the risk of overpayment and the risk that because the reward is too low during a period of unexpected congestion no one submits a proof
  • It allows fraud proof systems to delay the challenge period if the BASEFEE is high (as that might signify an attempted DoS attack)
  • It allows for trustless gasprice derivatives, helping users manage transaction fee risk

Some responses to possible concerns:

  1. BASEFEE is not a form of "gas observability" and does not have the same risks. The issue with gas observability is that if the EVM's internal execution is aware of the current remaining quantity of gas, gas cost changes could break contracts. But gas price is not the same as quantity of gas; making gas price accessible to the EVM does not impose any risks in the case that future gas costs are changed in the future.
  2. The trustless gasprice derivatives are not harmful in the same way that gastoken is, because (i) they do not waste 5000 gas per storage slot, and (ii) they can only be cashed out by selling them and buying gas space on the open market, so they do not enable more than the gaslimit worth of gas to be used in a single block (and so do not add variance risk).

@timbeiko
Copy link
Collaborator Author

timbeiko commented Apr 6, 2021

We agreed to move this to the Aleut devnet on ACD109, so closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants