# Binance-Peg Dai Token on xDai

{% hint style="info" %}
**New Documentation here** : <https://docs.gnosischain.com/>

The information in this page may be outdated.
{% endhint %}

The [Binance-Peg Dai Token](https://bscscan.com/token/0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3) can be bridged to xDai using the beta BSC-xDai Omnibridge. **However, this process DOES NOT mint native xDai**. Instead, the [Dai Token from BSC](https://blockscout.com/xdai/mainnet/tokens/0xFc8B2690F66B46fEC8B3ceeb95fF4Ac35a0054BC/token-transfers) is bridged across networks.

![](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-1a214db66012bac104612b50655a8110bd2b9d36%2Fbinance-bridge-warning.png?alt=media)

Using xDai tools, it only takes a few steps to convert Binance-Peg Dai to xDai. The process can also be completed in the reverse direction where xDai is converted to Binance-Peg Dai. Once converted from xDai, Binance-Peg Dai can be bridged back to BSC.

This option gives users the ability to convert Dai/xDai when mainnet bridging fees are expensive. A similar process should also be considered for Binance-Peg USDC tokens.

**Token Addresses:**

**Dai**

* [Binance-Peg Dai Token on Binance](https://bscscan.com/token/0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3)
* [Binance-Peg Dai Token on xDai ](https://blockscout.com/xdai/mainnet/tokens/0xFc8B2690F66B46fEC8B3ceeb95fF4Ac35a0054BC/token-transfers)(Named Dai Token from BSC)

**USDC**

* [Binance-Peg USDC Token on Binance](https://bscscan.com/token/0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d)
* [Binance-Peg USDC Token on xDai](https://blockscout.com/xdai/mainnet/tokens/0xD10Cc63531a514BBa7789682E487Add1f15A51E2/token-transfers) (Named USDC Coin from BSC)

**Tools Used:**

* [Wrapeth](https://wrapeth.com/): Convert xDai to wrapped xDai / unwrap wrapped xDai)
* [Component Finance](https://xdai.component.finance/): Swap stable tokens on xDai
* [BSC Bridge](https://bsc-to-xdai-omnibridge.web.app/): Bridge (in Beta) between xDai and Binance Smart Chain

## xDai -> BSC: Swap xDai to Binance-Peg DAI Example

### 1) Convert xDai to wxDai using the WrapEth Tool.

1. Go to <https://wrapeth.com/>
2. set MetaMask to the xDai Chain Network
3. Enter the amount of xDai to wrap
4. Press Submit.
5. Once the tx is complete, and wxDai is deposited, you can add wxDai ([0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d](https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d/transactions))

   to Custom Tokens in MetaMask.

![](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-ab4992fb057bb95d877118141051d158f31b6ef1%2Fwrapeth1.png?alt=media)

![](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-9e79a57d553acebe5a78cf84cf75c44ad783e3d0%2Fadd-token.png?alt=media)

### 2) Swap wxDai for Binance-Peg Dai on xDai using Component.

1. Go to <https://xdai.component.finance/>
2. Connect your Web3 Wallet (MetaMask) to the application and confirm you are connected to the xDai network.
3. Press the Swap tab and select the **WXDAI/DAI \[BSC]** pair.
4. Press Swap. You will need to approve the first transaction with amount to swap or you can select unlimited.
5. Complete this first approve transaction in Metamask.
6. Press Swap again and confirm the second transaction to swap.
7. Once complete, add Binance-Peg Dai on xDai to your MetaMask custom tokens. The address is [0xFc8B2690F66B46fEC8B3ceeb95fF4Ac35a0054BC](https://blockscout.com/xdai/mainnet/tokens/0xFc8B2690F66B46fEC8B3ceeb95fF4Ac35a0054BC/token-transfers) and in BlockScout it is called Dai Token on xDai.

{% hint style="info" %}
The same process can be used to swap USDC to USDC (BSC)
{% endhint %}

![Swap Tab with WXDAI and DAI \[BSC\] selected](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-5f24648e284f38d2dcbabe34846a04e42a9cba26%2Fcomponent.png?alt=media)

![Unlock for swapping, you can allow unlimited approval or a smaller amount](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-c2fcf71f43c77d6c179c6e79d5a7a5e554412391%2Fcontinue.png?alt=media)

![TX1 for approval](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-3144ab0cce55319b20e3b0b83f1fa4c5e0b18012%2Ftx1.png?alt=media)

![Tx 2 to complete the swap (2nd time pressing Swap button)](https://3138729496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZb5P6fud1wJKe9tMK71X%2Fuploads%2Fgit-blob-c541d77200e67e2d33b4788678f9623d040f0ae5%2Ftx2.png?alt=media)

### 3) Move to BSC (if desired) with the BSC Bridge

You can [follow this tutorial](https://gnosischain.gitbook.io/gnosis-beacon-chain/for-users/bridges/omnibridge/binance-smart-chain-omnibridge/bsc-omnibridge-example) to bridge with the Omnibridge. Note you will need some BNB on the Binance Smart Chain to complete the process (to pay the claiming fee). If you have BNB on BEP2 you will need to swap it to BSC.

## BSC -> xDai: Swap Binance-Peg Dai to xDai

You will follow the same process in reverse to convert Binance-Peg Dai from BSC to xDai.

### 1) Bridge Dai from BSC to xDai.

You can [follow this tutorial](https://gnosischain.gitbook.io/gnosis-beacon-chain/for-users/bridges/omnibridge/binance-smart-chain-omnibridge/bsc-omnibridge-example) to bridge with the [Omnibridge](https://omni.xdaichain.com/bridge).

### 2) Swap Dai (BSC) token for wxDai using Component.

1. Go to <https://xdai.component.finance/>
2. Connect your Web3 Wallet (MetaMask) to the application and select the xDai network.
3. Press the Swap tab and select the Dai \[BSC]/ wxDai pair. Follow the instructions in section 2 above to approve 2 transactions and swap.

### 3) Unwrap wxDai into xDai with Wrapeth.

1. Go to <https://wrapeth.com/>
2. Set MetaMask to the xDai Chain Network.
3. Select the Unwrap wxDai tab and enter the amount of wxDai to wrap.
4. Press Submit.
