|
| 1 | +--- |
| 2 | +title: SuperchainWETH (Interoperable ETH) |
| 3 | +lang: en-US |
| 4 | +description: Learn basic details about the SuperchainWETH or Interoperable ETH. |
| 5 | +--- |
| 6 | + |
| 7 | +import { Callout } from 'nextra/components' |
| 8 | + |
| 9 | +# SuperchainWETH (Interoperable ETH) |
| 10 | + |
| 11 | +<Callout> |
| 12 | + Interop is currently in active development and not yet ready for production use. The information provided here may change. Check back regularly for the most up-to-date information. |
| 13 | +</Callout> |
| 14 | + |
| 15 | +Superchain WETH or Interoperable ETH is a specialized version of the standard WETH (Wrapped Ether) contract designed to enable seamless movement of ETH across the Superchain. It addresses the liquidity constraints and usability issues that arise when transferring ETH between different chains. |
| 16 | + |
| 17 | +## Features and benefits |
| 18 | + |
| 19 | +* Enables seamless ETH transfers across different chains in the Superchain |
| 20 | +* Minimizes protocol complexity by treating ETH as an ERC-20 token |
| 21 | +* Maintains fungibility of ETH across the Superchain |
| 22 | +* Provides liquidity for cross-chain transactions |
| 23 | +* Supports interoperability between chains with different native assets (i.e., gas tokens) |
| 24 | +* Improves user experience by abstracting complex bridging processes |
| 25 | + |
| 26 | +<Callout type="warning"> |
| 27 | + `SuperchainWETH` requires `SuperchainTokenBridge` integration for full interoperable, cross-chain functionality. |
| 28 | +</Callout> |
| 29 | + |
| 30 | +## How it works |
| 31 | + |
| 32 | +Interoperable ETH (Superchain WETH) facilitates secure movement of ETH across the Superchain via `crosschainBurn` and `crosschainMint`. |
| 33 | + |
| 34 | +* **`crosschainBurn`**: Facilitates cross-chain transfers by **burning** WETH. The user sends ETH to the `SuperchainWETH` contract. `SuperchainWETH` interacts with `ETHLiquidity` to burn the ETH and sends a cross-chain message via the `L2ToL2CrossDomainMessenger` to the destination chain. |
| 35 | +* **`crosschainMint`**: Mints WETH on the destination chain after a cross-chain transfer. The user receives ETH or WETH on the destination chain. If the destination is a non-custom gas token chain, ETH is sourced from the `ETHLiquidity` contract. |
| 36 | + |
| 37 | +```mermaid |
| 38 | +sequenceDiagram |
| 39 | + participant User |
| 40 | + participant SuperchainWETH |
| 41 | + participant ETHLiquidity |
| 42 | + participant L2ToL2CrossDomainMessenger |
| 43 | + participant DestinationChain |
| 44 | +
|
| 45 | + User->>SuperchainWETH: Send ETH |
| 46 | + SuperchainWETH->>ETHLiquidity: Burn ETH |
| 47 | + SuperchainWETH->>L2ToL2CrossDomainMessenger: Send cross-chain message |
| 48 | + L2ToL2CrossDomainMessenger->>DestinationChain: Relay message |
| 49 | + DestinationChain->>SuperchainWETH: Call relayETH/relayERC20 |
| 50 | + SuperchainWETH->>ETHLiquidity: Source ETH (if non-custom gas token chain) |
| 51 | + SuperchainWETH->>User: Receive ETH/WETH on destination chain |
| 52 | +``` |
| 53 | + |
| 54 | +This diagram illustrates the process where the user sends ETH to the `SuperchainWETH` contract which burns the ETH and sends a cross-chain message to the destination chain, enabling seamless cross-chain ETH transfers without the need for asset wrapping. |
| 55 | + |
| 56 | +## Major components |
| 57 | + |
| 58 | +### `SuperchainWETH` Contract |
| 59 | + |
| 60 | +This contract implements the core functionality for wrapping, unwrapping, and cross-chain transfer of ETH. It integrates with the `SuperchainTokenBridge` for interoperable actions. |
| 61 | +* Contract address: `0x4200000000000000000000000000000000000024` |
| 62 | + |
| 63 | +### `ETHLiquidity` Contract |
| 64 | + |
| 65 | +A predeploy contract with a large pool of ETH that provides liquidity for cross-chain transfers. It allows "burning" and "minting" of ETH for cross-chain transfers. |
| 66 | +* Contract address: `0x4200000000000000000000000000000000000025` |
| 67 | + |
| 68 | +### `L2ToL2CrossDomainMessenger` Contract |
| 69 | + |
| 70 | +This predeploy contract facilitates general message passing between different chains in the Superchain. It also securely transfers ERC20 tokens between L2 chains. |
| 71 | +* Contract address: `0x4200000000000000000000000000000000000023` |
| 72 | + |
| 73 | +<Callout type="info"> |
| 74 | + `SuperchainWETH` implements strict access controls to ensure security (e.g., only `SuperchainWETH` can call `ETHLiquidity` functions). |
| 75 | +</Callout> |
| 76 | + |
| 77 | +## Next steps |
| 78 | + |
| 79 | +* Explore the [`SuperchainWETH`](https://specs.optimism.io/interop/superchain-weth.html) specs for in-depth implementation details. |
| 80 | +* Learn more about [cross-chain messages](cross-chain-message) and the [SuperchainERC20 token standard](superchain-erc20). |
| 81 | +* Review the [Superchain Interop Explainer](explainer) for answers to common questions about interoperability. |
0 commit comments