Skip to content

Commit 29d7fc5

Browse files
committed
fix linting
1 parent d2f0f77 commit 29d7fc5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pages/stack/protocol/features/custom-gas-token.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ When deposited, this L1 ERC-20 token will become the native gas token on the L2
2525

2626
<Callout type="warning">
2727
**Caveats chain operators should be aware of:**
28+
2829
* You cannot switch from your custom gas token to another token after the chain is launched.
2930
* You will need to manually modify your fee configuration values to properly charge fees for users.
3031
* 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
6970

7071
### What is the Wrapped (ERC-20) Gas Token?
7172

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).
7475

7576
### How do I charge fees as the chain operator?
7677

7778
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.
7879

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.
8081

8182
### What's the best way to monitor my custom gas token chain?
83+
8284
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.
8385

8486
### Can I migrate my chain into being custom gas token?

words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@ tility
299299
timeseries
300300
trustlessly
301301
trustrpc
302+
TWAP
302303
txfeecap
303304
TXPOOL
304305
txpool
306+
undercollateralized
305307
Unprotect
306308
unsubmitted
307309
UPNP

0 commit comments

Comments
 (0)