xDai <-> Matic networks Bridge [Powered by Connext]

Kase
4 min readMar 22, 2021

Move xDai — Dai with the 3rd party Connext State Channels Bridge

A new beta bridge lets users move xDai to Dai on Polygon (Matic), and Dai on Polygon (Matic) to xDai using state channels! It’s simple and inexpensive, and you can send any amount, large or small, between chains.

xDai to Polygon (Matic)

1.- Go to https://xdai-matic-connext.vercel.app/ 3 and connect your web3Wallet. In this example we use MetaMask. If you need to add Matic or xDai, you can do so easily at Chainlist.org 1. Also, if you are using Brave browser, disable shields.

Here you need to connect your wallet in xDAI network

2.- Connect to the chain you want to transfer from.

  1. Enter the Receiver’s address (it can be the same address on the other chain, or you can choose a different address.
  2. Press Cross-Chain Transfer.
You can send to you own account

3.- Sign in your wallet to confirm channel setup.

4.- Enter the amount to transfer and press Swap.

You can send what you want

5.- Confirm the transaction in MetaMask. In this case the cross-bridge transfer cost $0.0004. You know that xDAI network is very cheap! We love it.

xDAI token is the fee of this bridge

6.- Transaction should process in a few seconds and you will see success. You can click on the VIEW TX button to see the transaction in the Matic BlockScout Explorer (https://explorer-mainnet.maticvigil.com).

Press blue button to see the tx in Matic BlockScout
Matic BlockScout is similar than xDAI Chain BlockScout

7.- If bridging from xDai, and you have not added Dai to Matic previously, you may need to add to your wallet to view. Go to Assets -> Add Token, enter the (PoS) Dai Stablecoin on Matic address: 0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063and click Next to add to your wallet view.

0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063

Polygon (Matic) to xDAI

To bridge in the other direction, simply change the chain in MetaMask, select the other direction, and proceed as above, this time moving Dai from Matic to xDai on the xDai chain.

Note, you will need a very small amount of Matic to pay the transaction fees. Dai from Matic (PoS Dai Stablecoin Dai) will be converted to the xDai native token on the xDai chain. Matic fees are cheap as xDAI fees.

TESTING:

We have done a test to verify that the whole process works correctly and the result was successful.
We have tested with various quantities, from 2 DAI as we present in the example up to 50.

Sending
Sent SUCCES!
You can check TX in the blue square button:
Finally

MATIC SWAP PAGE:

https://quickswap.exchange/#/swap

When the process is finished and you have your DAI tokens in the MATIC network, access the link that we publish above and carry out the swap you need in the MATIC network. Remember that you need the MATIC token to perform operations on this network

--

--