[Core Protocol] Ecotone fee docs are incorrect and inconsistent #429
-
Did you check the documentation?
Did you read the specs?
Did you check for duplicate questions?
Issue DescriptionThe ecotone section on fees explains the following:
On the final line, it says:
Meanwhile, looking at GasOracle calls in a transaction stack trace, none of the values returned are 0 (even though the baseFee view function in GasOracle on basescan returns 0). Following the formula in the Optimism docs using GasOracle will result in an L1 fee calculation that's much (>10x) higher than the actual L1 fee (e.g. Please provide an accurate description of the calculation in the docs. I believe a Solidity example using GasOracle will also help greatly. Additional InformationNo response FeedbackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello. Are you asking about Base rather than OP Mainnet? |
Beta Was this translation helpful? Give feedback.
@deanpress
First, the values you referred are no longer in use.
Please refer to this.
That document does not reflect the actual method names of the contract. Therefore, I think it would be best to refer to this specification.
Additionally, the
base_fee_scalar
andblob_base_fee_scalar
have the hardcoded value of6
applied as decimals. Therefore, you should divide by10e6
. For more details, please refer to this specification.Based on this, the L1fee should output the actual value.
Upon actual calculation, your L1 fee can be 0.00013 USD.