Skip to content

Conversation

@yuwen01
Copy link
Contributor

@yuwen01 yuwen01 commented Jul 16, 2025

This is the current operator fee formula.

operatorFee = operatorFeeConstant + operatorFeeScalar * gasUsed / 1e6

The 1e-6 multiplier on the operatorFeeScalar is not useful for operators as it results in a fee that is too low to be useful. This design doc proposes the following change to the operator fee formula.

operatorFee = operatorFeeConstant + operatorFeeScalar * gasUsed * 10

With the new fee formula, here are some examples of some possible fees being charged.
For the dollar cost column, we assume an ETH price of 2.5k.

Gas Used operatorFeeScalar operatorFeeScalar * gasUsed * 100 Dollar Cost
30,000,000 1 3 gwei $0.0000075
30,000,000 2^32 1.29e10 gwei $32,250.00
1,000,000 1 0.1 gwei $0.00000025
1,000,000 2^32 4.29e8 gwei $1,072.50

Fixes ethereum-optimism/optimism#16623

@tynes
Copy link
Contributor

tynes commented Jul 16, 2025

Could you add some additional fields to the table that make it easy to see how much USD is charged? ie an ETH/USD assumption and then a USD fee charged. This will help to make sure that the thing that impacts the end user is accounted for

@tynes
Copy link
Contributor

tynes commented Jul 16, 2025

Do you mind calling out the parts of the codebase that will need to change? I believe no change to SystemConfig or L1Block given that the type for the scalar isn't changing, there is a change to the GasPriceOracle and the fee charging logic in the state transition function

Copy link
Contributor

@geoknee geoknee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We got good alignment on the review call. Just need to update the table and then we can merge the PR (ratify it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

operatorFeeScalar too limited to reflect realistic gas fees

6 participants