Converting HOPR token
Like DAI and xDAI, HOPR and xHOPR exist in a 1:1 relationship on Gnosis Chain and Ethereum mainnet, respectively. To convert between them, you need to use a tool called a Omnibridge found at https://omni.xdaichain.com
- xHOPR to HOPR
- HOPR to xHOPR
- xHOPR to wxHOPR
tip
Your wallet needs to be connected to Gnosis Chain. If you haven’t set that up yet, you can find the details here. You’ll need to select “Add Custom RPC” in your wallet and fill in the information.
Click the “Connect” button to connect your wallet.
Choose your wallet type. For this tutorial we’ll use MetaMask.
A popup will appear. Select the wallet you want to use and click "Next".
- You’ll see a screen with your wallet address and Gnosis chain at the top right.
- Now you need to select your tokens to swap. Select the dropdown menu on the “From” side of the bridge.
- Search for HOPR token and click on it. After selecting HOPR token, it will say “HOPR Token on GC” on the “From” side and “HOPR Token” will be automatically selected on the “To” side.
Enter the amount you want to transfer across the Omnibridge. The amount you will receive will be shown on the other side. This will be very slightly different, because the bridge charges a small fee.
Press “Request” to begin the transfer.
You will receive a warning confirming the bridge fee for the transfer and explaining about the gas fees involved. There will be two transactions, one on the Gnosis side and one on the ETH side. Each will cost gas, so make sure you have both currencies in your wallet, in addition to your xHOPR.
Once you’re ready to start the transfer, press “Continue”
You need to wait for 12 block confirmations before the transfer begins. This will happen on the Gnosis side so should only take around a minute.
If you click the blue link, you’ll see what’s going on behind the scenes.
Warning
Don’t close the Omnibridge tab! Your transaction won’t be lost, but it will require a bit more effort to process manually. If this happens, please contact the ambassadors in our Telegram channel for help.
Once the transaction reaches 12 block confirmations, an automated multisig will process the transaction on the ETH side. Four out of seven validators must provide signatures to approve the transfer. This can take a little time.
Your tokens will need to be claimed on the other side of the bridge. To do this, your wallet will need to be disconnected from Gnosis Chain and connected to the Ethereum mainnet.
In the Omnibridge, you’ll see a popup asking you to do just that:
Change back to ETH Mainnet in your wallet, and the Omnibridge will automatically detect it.
The popup will change to show a “CLAIM” button:
Press “Claim” and a popup will appear from your wallet asking you to confirm the transaction on the ETH Mainnet. This will be a lot more expensive than the transaction on the Gnosis side, and may take some time due to congestion. But once it confirms, you will have HOPR in your wallet on ETH Mainnet!
Converting from HOPR to xHOPR works in exactly the same way like from xHOPR to HOPR, using the Omnibridge. There are a few small differences.
- There’s no bridge fee.
- You’ll obviously need to switch which address goes in which box when adding the assets
- There won’t be a “Claim” process like in the GC to ETH direction — you’ll just receive your tokens.
If your metamask wallet will be on Ethereum network, then after connecting your wallet with Omnibridge, it will show you on the "From" side "ETH Mainnet" and on the "To" side "Gnosis chain".
- Now you need to select your tokens to swap. Select the dropdown menu on the “From” side of the bridge and find a HOPR token.
- Enter the amount you want to transfer across the Omnibridge. The amount you will receive will be shown on the other side.
- As with most ERC20 dapps, there will be an extra transaction before you can begin: before you can use the Omnibridge on the ETH side, you’ll need to sign an
approve
transaction with your wallet. Press the “Unlock” button.
And confirm the prompt that appears from your wallet.
After unlocking, press “Transfer” button to begin the transfer, confirm the transaction. Wait a little bit and your HOPR tokens from ETH network will be transferred to Gnosis network.
To convert between xHOPR and wxHOPR you should use the HOPR wrapper, found at https://wrapper.hoprnet.org
Switch your wallet to Gnosis Chain and press “Connect Wallet”.
- Select the wallet address you want to use from the list
- Click "Next" and then click "Connect" button.
Enter the amount of xHOPR you want to convert (wrap) to wxHOPR and click button "Swap to wxHOPR", confirm the transaction.
To convert (unwrap) from wxHOPR to xHOPR repeat same process, but on wxHOPR field, enter amount you would like to convert to xHOPR and press button "Swap to xHOPR".