Skip to content

Commit ce2b7c7

Browse files
authored
Merge pull request #1609 from ethereum-optimism/gk/pectra-fees-2
pectra fees: tweaks from Seb's review
2 parents e169e13 + ba00be9 commit ce2b7c7

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

pages/notices/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"pectra-fees": "Pectra user fees notice",
3+
"pectra-changes": "Preparing for Pectra breaking changes",
34
"superchain-withdrawal-pause-test": "Superchain withdrawal pause test",
5+
"holocene-changes": "Preparing for Holocene breaking changes",
46
"upgrade-15": "Upgrade 15: Isthmus Hard Fork",
57
"upgrade-14": "Upgrade 14: MT-Cannon and Isthmus L1 Contracts",
68
"upgrade-13": "Upgrade 13: OPCM and incident response improvements",
79
"blob-fee-bug": "Superchain testnets' blob fee bug",
8-
"pectra-changes": "Preparing for Pectra breaking changes",
9-
"holocene-changes": "Preparing for Holocene breaking changes",
10-
"sdk-deprecation": "Preparing for Optimism SDK deprecation",
11-
"custom-gas-tokens-deprecation": "Preparing for Custom Gas Tokens deprecation"
10+
"custom-gas-tokens-deprecation": "Preparing for Custom Gas Tokens deprecation",
11+
"sdk-deprecation": "Preparing for Optimism SDK deprecation"
1212
}

pages/notices/pectra-fees.mdx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,40 @@ categories:
1515
is_imported_content: 'false'
1616
---
1717

18+
import { Callout } from 'nextra/components'
19+
1820
# Pectra impact on user fees and chain profitability
1921

2022
The Ethereum L1 Pectra upgrade has introduced changes to calldata gas costs via [EIP-7623](https://eips.ethereum.org/EIPS/eip-7623) that may affect OP Stack chain profitability in specific configurations and market conditions. This notice outlines the potential impact on your chain and recommends specific actions.
2123

22-
[EIP-7623](https://eips.ethereum.org/EIPS/eip-7623) increases the amount of gas payable for calldata transactions. These include such transactions as those used by OPStack chains *before the [Ecotone upgrade](https://specs.optimism.io/protocol/ecotone/overview.html)* when blob data availability (blob DA) was introduced.
24+
[EIP-7623](https://eips.ethereum.org/EIPS/eip-7623) increases the amount of gas payable for calldata-heavy transactions. These include such transactions as those used by OPStack chains *before the [Ecotone upgrade](https://specs.optimism.io/protocol/ecotone/overview.html)* when blob data availability (blob DA) was introduced.
2325

24-
Blob DA has now been the default and recommended option for the OPStack for some time, so almost all chains make use of it. In order to continue to optimize for chains operating with blob DA, the Optimism protocol's current DA fee pricing formula has remained unchanged despite Pectra activating on Ethereum.
26+
Blob DA has now been the default and recommended option for the OPStack for some time, so almost all chains make use of it. In order to continue to optimize for chains operating with blob DA, the Optimism protocol's current DA fee pricing formula has remained unchanged despite Pectra activating on Ethereum. This has allowed chains using blob DA to continue without updating their fee config.
2527

26-
Chains configured for blob data availability remain entirely unaffected by the Pectra upgrade. However, chains configured for calldata (i.e. operating in a legacy DA mode) may experience a reduction in profitability. It possible for such chains to be making a loss on data availabilty costs under certain market conditions. Therefore all chains should check their fee scalar config.
28+
Chains configured for blob data availability remain entirely unaffected by the Pectra upgrade. However, chains configured for calldata (i.e. operating in a legacy DA mode) may experience a reduction in profitability. It is possible for such chains to be making a loss on data availability costs under certain market conditions. Therefore all chains should check their fee scalar config.
2729

2830
## Actions required
2931

3032
Since the Ecotone upgrade, the Optimism protocol prices L2 transactions using a function that incorporates the L1 base fee as well as the L1 blob base fee. The other inputs are the so-called "Ecotone scalars": operator-controlled parameters stored in the SystemConfig contract which can be used to tune the chain's (approximate) target profit margin for DA.
3133

32-
Please review your [Ecotone scalar chain configuration](/operators/chain-operators/management/blobs). If your chain uses a zero blob base fee scalar, meaning it's configured to price for calldata only, you may need to update the base fee scalar and or the blob base fee scalar. Otherwise, no action is necessary.
34+
Please review your [Ecotone scalar chain configuration](/operators/chain-operators/management/blobs).
3335

34-
If your batcher is configured to submit using calldata *only*, then you should:
36+
<Callout type="info">
37+
If your chain uses a zero blob base fee scalar, meaning it's configured to price for calldata only, you may need to update the base fee scalar and/or the blob base fee scalar. Otherwise, no action is necessary and the rest of this section does not apply.
38+
</Callout>
3539

36-
* scale your base fee scalar by 10/4.
40+
### Chains charging for calldata DA and spending on calldata DA
41+
If your chain uses a zero blob base fee scalar and your batcher is configured to submit using calldata *only*, then you should take the opportunity to check your chain's profit margin according to [this guide](/operators/chain-operators/management/blobs) and make any adjustments to your Ecotone scalars as necessary. This will ensure that, since you are paying exclusively for calldata DA, you are charging users appropriately such that your target profit margin is as desired.
3742

38-
This will ensure that, since you are paying exclusively for calldata DA, you are charging users appropriately such that your target profit margin is the same as it was before Pectra.
43+
If your profit margin was perfectly tuned before Pectra, then you should scale your base fee scalar by 10/4.
3944

40-
If your batcher is configured to submit using blob DA, or configured to automatically choose the cheaper of the two DA modes, then you should adjust your Ecotone scalars for blob DA pricing (meaning a nonzero blob base fee scalar). You are referred back to [this guide](/operators/chain-operators/management/blobs). Doing so will ensure that you are charging accurately for using blob DA. Without such a change it is likely that you are overcharging users most of the time, and undercharging them in the rare occasions where blob DA is more expensive than calldata DA on Ethereum mainnet.
45+
### Chains charging for calldata DA and spending on blob DA
46+
If your chain uses a zero blob base fee scalar and your batcher is configured to submit using blob DA, or configured to automatically choose the cheaper of the two DA modes, then you should adjust your Ecotone scalars for blob DA pricing (meaning a nonzero blob base fee scalar). You are referred back to [this guide](/operators/chain-operators/management/blobs). Doing so will ensure that you are charging accurately for using blob DA. Without such a change it is likely that you are overcharging users most of the time, and undercharging them in the rare occasions where blob DA is more expensive than calldata DA on Ethereum mainnet.
4147

4248
As ever, you may continue to tweak the Ecotone scalars as desired in order to adjust the profitability of your chain.
4349

44-
### Technical References
50+
### Technical references
4551

46-
* [Optimism Protocol Specification - Ecotone L1 Cost Fee Changes](https://specs.optimism.io/protocol/exec-engine.html#ecotone-l1-cost-fee-changes-eip-4844-da)
47-
* [Optimism Protocol Specification - Fjord Execution Engine Fees](https://specs.optimism.io/protocol/fjord/exec-engine.html#fees)
48-
* [Implementation Source Code](https://github.com/ethereum-optimism/op-geth/blob/3d7afdc2701b74c5987e31521e2c336c4511afdf/core/types/rollup_cost.go#L527)
52+
* [Optimism protocol specification - Ecotone L1 cost fee changes](https://specs.optimism.io/protocol/exec-engine.html#ecotone-l1-cost-fee-changes-eip-4844-da)
53+
* [Optimism protocol specification - Fjord execution engine fees](https://specs.optimism.io/protocol/fjord/exec-engine.html#fees)
54+
* [Implementation source code](https://github.com/ethereum-optimism/op-geth/blob/3d7afdc2701b74c5987e31521e2c336c4511afdf/core/types/rollup_cost.go#L527)

pages/operators/chain-operators/management/blobs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ blobs back to using calldata.
122122
information is tuned to a network like OP Mainnet.
123123

124124
<Callout type="warning">
125-
Since the Pectra upgrade on L1, chains which exclusively use calldata DA need to scale up their BaseFeeScalar by 16/10. See [this notice](/notices/pectra-fees).
125+
Since the Pectra upgrade on L1, chains which exclusively use calldata DA need to scale up their BaseFeeScalar by 10/4. See [this notice](/notices/pectra-fees).
126126
</Callout>
127127

128128
Chains can update their fees to increase or decrease their margin. If using calldata, then `BaseFeeScalar` should be scaled to achieve the desired margin.

words.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ authrpc
2222
autorelay
2323
Autorelay
2424
autorelayer
25-
availabilty
2625
basefee
2726
bcde
2827
betanet

0 commit comments

Comments
 (0)