Important Information
- Unlike ERC-20, ERC-721, and ERC-1155; ETH is nativley support between Ethereum and SKALE Chains. This means you do NOT need to map ETH to a token
- ETH has its own special DepositBox on Ethereum called DepositBoxETH which holds ETH separately from the other assets bridged to the SKALE Network
When ETH is deposited on Ethereum, it is received as an ERC-20 token on all SKALE Chains.
This token is NOT WETH. This token is predeployed on all SKALE Chains to the same token address and information as ETHC.
ETH on SKALE
ETH when bridged to a SKALE Chain always “mints” to the same place. This is flagged as important to avoid confusion with you and your users.
An example of ETH on SKALE can be seen here on Europa Mainnet block explorer.
Bridging ETH
To bridge ETH from Ethereum to SKALE, you should deposit ETH on Ethereum Mainnet to DepositBoxEth, a smart contract thatBridge to SKALE (from Ethereum)
The following does not require any gas (i.e sFUEL) on the SKALE Chain. Please note to exit to Ethereum once you are on SKALE,
you will need ETH on Ethereum to fill up your community wallet.
- normalDeposit.js
- directDeposit.js
Bridge to Etheruem (from SKALE)
SKALE’s decentralized bridge offers a simple two-step process to bridge ETH from any SKALE Chain to Ethereum Mainnet.- The first step, which only has to be done if you don’t have a sufficient balance to exit, is to fill up your gas wallet on Ethereum
- The second step is to initiate the bridge (technically known as an exit) on the SKALE Chain
Gas Wallet, officially referred to as the community pool, is a smart contract on Ethereum that is used to handle exits from SKALE. Users pre-pay ETH into this contract which is then used to reimburse validators for the gas costs of the bridge cost back to Ethereum. Make sure users top up their gas wallet to ensure the bridge is successful.
Pre-pay for your Exit
This step is optional IF the user has already filled up their gas wallet and has sufficient balance left. You can check if the wallet is anactiveUser on the CommunityLocker 0xD2aaa00300000000000000000000000000000000 smart contract on the SKALE Chain. If active, no need to fill the pool again.
Bridge to Ethereum
Once the above prepayment steps are completed, you can proceed with the bridging. Bridging from SKALE simply requires theexitToMain function to be called with the corresponding token and amount to initiate the transfer back to Ethereum.
If your bridge is not working, it is most likely for one of three reasons:
- You forgot to prepay for gas
- You forgot to approve the SKALE Bridge on the ETH ERC-20 token
- You don’t have sufficient funds to bridge
