You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/stack/protocol/features/custom-gas-token.mdx
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ When deposited, this L1 ERC-20 token will become the native gas token on the L2
25
25
26
26
<Callouttype="warning">
27
27
**Caveats chain operators should be aware of:**
28
+
28
29
* You cannot switch from your custom gas token to another token after the chain is launched.
29
30
* You will need to manually modify your fee configuration values to properly charge fees for users.
30
31
* Understand the [constraints required for your chain to be able to join the Superchain](#considerations) when setting the custom gas token for your chain.
@@ -69,16 +70,17 @@ The custom token being used must adhere to the following constraints to be able
69
70
70
71
### What is the Wrapped (ERC-20) Gas Token?
71
72
72
-
- The `WETH` predeploy at `0x4200000000000000000000000000000000000006` represents the wrapped custom gas token. If you wish to transact with your native gas token as an ERC-20, you can `deposit` and `withdraw` from this contract to wrap and unwrap your token.
73
-
- What this means is the asset at the `WETH` predeploy is not `ether` but instead is the wrapped version of your custom gas token. Its an ERC20 token, the `name()` will be `"Wrapped ..."` (whatever the name of your token is).
73
+
* The `WETH` predeploy at `0x4200000000000000000000000000000000000006` represents the wrapped custom gas token. If you wish to transact with your native gas token as an ERC-20, you can `deposit` and `withdraw` from this contract to wrap and unwrap your token.
74
+
* What this means is the asset at the `WETH` predeploy is not `ether` but instead is the wrapped version of your custom gas token. Its an ERC20 token, the `name()` will be `"Wrapped ..."` (whatever the name of your token is).
74
75
75
76
### How do I charge fees as the chain operator?
76
77
77
78
The initial release of custom gas token does not have special logic for taking into account the exchange rate between the custom gas token and ether. This logic is nice to have because it requires ether to purchase data availability for Ethereum. If the chain is earning in a custom gas token and spending in ether, then it must earn enough custom gas token such that it can be sold for ether.
78
79
79
-
For the initial release of custom gas token, the chain operator will need to manage this either out of band or by manually tuning the fee parameters to ensure profitability. A future release may include[L1 Fee Abstraction](https://github.com/ethereum-optimism/specs/issues/73)where the L1 fee is calculated in a smart contract instead of native code. This would enable an on chain oracle to take into account the exchange rate of the custom gas token. This oracle could be something like Uniswap TWAP or Chainlink.
80
+
For the initial release of custom gas token, the chain operator will need to manage this either out of band or by manually tuning the fee parameters to ensure profitability. A future release may include[L1 Fee Abstraction](https://github.com/ethereum-optimism/specs/issues/73)where the L1 fee is calculated in a smart contract instead of native code. This would enable an on chain oracle to take into account the exchange rate of the custom gas token. This oracle could be something like Uniswap TWAP or Chainlink.
80
81
81
82
### What's the best way to monitor my custom gas token chain?
83
+
82
84
It is important to monitor your custom gas token chain to see if your chain's bridge is undercollateralized by checking that the amount of ETH in the `OptimismPortal` is greater or equal to the amount of ETH on the L2. [Chain monitor](https://github.com/ethereum-optimism/optimism/tree/v1.7.4/packages/chain-mon) is one way to actively monitor your custom gas token chain.
83
85
84
86
### Can I migrate my chain into being custom gas token?
0 commit comments