Bridging In (and Out)
Last updated
Last updated
Bridging value "in" and "out" of Facet will resemble experiences you are familiar with on other rollups. We'll demonstrate end-to-end flow of bridging L1 ether (ETH) into Facet as Facet-Wrapped ETH (WETH) using FacetSwap.com, a DEX built on Facet Protocol.
Start the bridging process by heading to the FacetSwap bridge page. This is where you’ll initiate transferring assets from Ethereum mainnet to Facet.
Approve the transaction within your wallet. This step authorizes the smart contract to transfer the specified amount from your Ethereum account into the bridge. Once confirmed, your transaction will be processed, and your assets will be moved from Ethereum mainnet to Facet.
After confirming the transaction in your wallet, a "success" notification appears within the app. You'll now see an updated Facet balance (e.g., 0.15 WETH) reflecting the recently bridged asset now available within Facet network. You can now execute other Facet trades on FacetSwap using this WETH balance.
Now let's bridge some of that Facet-wrapped ETH (WETH) back out to L1 Ethereum.
At this stage, your withdrawal is waiting for a state root to be posted on the Ethereum mainnet. State roots are snapshots of the rollup network's state, allowing Facet transactions to be verified on Ethereum. This is a common mechanism across many rollup networks to ensure that state transitions on the rollup are verifiable on Ethereum. State roots are typically posted once a day, so you may need to wait until the next batch update.
At this point, the system is ready to generate a proof for your transaction, which serves as cryptographic evidence that your withdrawal is valid and can be trusted. By clicking "Prove," you're initiating the process to confirm that your withdrawal aligns with the network’s state and rules. This proof helps prevent any unauthorized withdrawals from being processed.
Once the proof is generated, your transaction enters a challenge period. This period gives other network participants the opportunity to review the withdrawal proof and contest it if it appears invalid. The challenge period is a standard security feature on rollup networks, designed to protect the network and users from potential fraud by giving the community time to verify the legitimacy of the withdrawal. The challenge period of FacetSwap.com is less than 1 minute.
After the challenge period ends (< 1 minute) without any disputes, your withdrawal becomes ready for relay to Ethereum. By clicking "Finalize," you're triggering the last step in the process, which will transfer your WETH from Facet to your Ethereum wallet.
Once the process is fully complete, check your balances. You should see an increase in your ETH balance on Ethereum and a decrease in your WETH balance on Facet, confirming that the bridge-out was successful and your funds have been received.