-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Resolve discrepancy between on-chain and off-chain elasticity_multiplier
values.
#11149
Comments
If we can't do 1. in Granite or Holocene, it could be worth it doing 2. for the next contracts release to avoid confusion until we add it back? |
elasticity_multiplier
values.elasticity_multiplier
values.
The |
Thanks @mark. I wonder if there are any documentation improvements we can make in the short term to prevent confusion on this issue? Otherwise, it looks like there isn't any action necessary after all and this ticket can be closed. |
Off chain
op-geth uses a static elasticity multiplier set in the chain config. See here and here.
This value is currently hardcoded to
6
.On chain
We also store an
elasticityMultiplier
inside theResourceConfig
struct:optimism/packages/contracts-bedrock/src/L1/ResourceMetering.sol
Lines 45 to 49 in d510910
in the
SytemConfig
contract:optimism/packages/contracts-bedrock/src/L1/SystemConfig.sol
Lines 114 to 118 in d510910
On OP Mainnet, the parameter is actually set to 10. See this etherscan link.. I believe this is a historical / out-of-date value.
Moreover, we are actually reading and validating this parameter in the superchain registry (see here), since we have specified that
10
is the standard value.From what I can tell this parameter is not being read by the off-chain software. Here's a hint that this was once the plan:
optimism/packages/contracts-bedrock/src/L1/SystemConfig.sol
Lines 439 to 444 in d510910
I propose that we should either:
The text was updated successfully, but these errors were encountered: