---
# System prepended metadata

title: xDAI in-app awareness
tags: [Product]

---

---
tags: Product
---

# xDAI in-app awareness

## Call to Action

> Toast, bar, or modal popup

**DAOhaus is now available on the xDAI network!** 
Check our guide on how to switch for cheaper, faster interactions.

Learn More => (link to Quick Start content below)

## xDAI Quick Start

Ethereum Mainnet is extremely secure, but  lately the transaction fees have been too high due to high usage of the network. Slightly less secure, but exponentially faster and cheaper, the xDAI network offers a strong alternative until Eth 2.0 arrives.

#### Network Comparison


| Network | Cost to Summon | Cost to Vote | Speed | Security |
| -------- | -------- | -------- | -------- | ------- |
| Main     | $80     | $5    | 5 tps  | Hyper Secure  |
| xDAI     | $0.05     | $0.001    | 70 tps  | Secure  |


There are tradeoffs with any network switch. In the case of xDAI, you get far better usability for your community, but at the cost of a slightly less secure network (less decentralized) and slight change in user experience as you need to bridge tokens from Main onto the xDAI network, and back again if you need access to a token not yet on xDAI. For more on why we've chosen xDAI over other Layer 2 solutions, read this => (link to About #section on xDAI)

We’ve prepared the following tips to using DAOhaus on xDAI, but please feel free to hop into our [Discord](https://discord.gg/MEYmdJF) and ask us anything.

### How to xDAI

> Important! This guide is for DAOs fully running on xDAI. If your DAO is on Mainnet and you're looking to migrate all activity to xDAI, follow the suggested Migrate DAO to xDAI process => (link to content below)


### 1. Bridge some Dai to xDAI

Where Eth is the native token on Ethereum Mainnet, xDAI is native token on xDAI networl. To bridge some Dai to xDAI, visit the bridge on Mainnet. Transactions are very cheap on xDAI so you shouldn't need much, unless 
https://dai-bridge.poa.network/

> Note: You can always bridge xDAI back to Dai by visiting the same bridge while on the xDAI network instead of Mainnet.

### 2. Switch to xDAI network

Add xDAI as a network by clicking 'Custom RPC' in the network dropdown in Metamask, and filling in the following details:

> accompanying screenshot

- Network Name: xdai
- New RPC URL: https://dai.poa.network/
- ChainID: 100
- Symbol: xDAI
- Block Explorer URL: https://blockscout.com/poa/xdai

You are now on the xDAI network with some xDAI to run transactions like summoning a DAO or voting in an existing one.


### 3. Get Wrapped xDAI (Optional)

A lot of DAOs use a wrapped version of the native token (wETH) to submit proposals. The equivalent on xDAI is wrapped xDAI (wxDAI). Visit Wrapeth.com while on xDAI network to wrap and unwrap xDAI as needed.

> screenshot of wrapeth on xDAI
 
### 4. Bridge back to Main (When Necessary)

Whenever you need to take tokens back to Mainnet for whatever reason, you simply visit the bridge while on xDAI network and bridge your xDAI back to DAI.

https://dai-bridge.poa.network/


---


## Migrate DAO from Mainnet to xDAI

The xDAI bridge currently only accepts DAI <> xDAI transfers. For that reason, migrating is only recommended for DAOs who are only holding DAI in their bank.
 
 > A Multitoken bridge is on its way. We're helping build it so it's coming fast ;). We'll update this guide when it is usable.


### 1. Put a hold on Mainnet activity

When ready to start migrating, tell your community to hold off on submitting new proposals until the migration to xDAI is complete. Depending on the length of your DAO's voting period, it'll take at least that long to get the state mirrored on xDAI. 

**Important! Before starting the migration, make sure all proposals are processed and there are no proposals in Queue, Voting, Grace, Ready for Processing.**

### 2. Summon the DAO on xDAI

Visit DAOhaus on xDAI and summon your DAO. Typically you would want to mirror the same settings as the original DAO on mainnet, aside from the token contracts. 

https://xdai.daohaus.club/summon

### 3. Submit Member Proposals to the xDAI DAO

Once the DAO is summoned on xDAI, you basically just have to get all exact Shares and Loot allocated to the exact same members as the one on mainnet.

We are working on a migration tool to ease this process, but for now the easiest way to do this to submit Member Proposals for each member and setting appropriate Shares and Loot as found on mainnet.

> screenshot of funding proposal
> screenshot of member cards in dao?

**Important! Be sure to follow proposals on xDAI and ensure they all get voted on by someone so that they pass.**

Once all proposals have been submitted, sponsored, voted on, and processed, your xDAI DAO is now in sync with your Mainnet DAO. Other than the tokens!

### 4. Migrate Bank from Main to xDAI

The quickest way to migrate funds is to submit a Funding Proposal that sends all the DAI in the Mainnet DAO to a trusted member.

The trusted member then simply goes to the [xDAI bridge](https://dai-bridge.poa.network/) on Mainnet to bridge the DAI to xDAI. Switch to xDAI network and visit Wrapeth.com to wrap the xDAI into wxDAI. Once wrappd, you can send the wxDAI to the DAO's contract address.

For a more trustless solution => (link to a multisig process?)

### 5. Continue the party on xDAI

With all members, their respective shares/loot, and funds moved over to xDAI, you're ready to party.

If a member needs to take their DAI back to Mainnet, they simply visit the [xDAI bridge](https://dai-bridge.poa.network/) while on xDAI and bridge the tokens back to DAI on Mainnet.

---

### Trustless Migration of DAO funds to xDAI

Needs cleanup for mortals.

####  Mainnet

* make funding proposal for full amount - 1 to multisig (5days)
* from safe withdraw funds from dao
* from safe send 1 dai test transaction to bridge, set reciever to xdai multisig

alternate receiver doc
https://www.xdaichain.com/for-users/converting-xdai-via-bridge/alternate-receiver-send-dai-to-another-xdai-address

* approve bridge relay for 1 dai
* send 1xdai to relay
* after 8 confirmations switch to xdai


#### xDai

* in multisig verify xdai balance
* "deposit" 1 xdai to wxdai contract
* verify wxdai balance is now 1 in multisig
* transfer wxdai to dao
* sync balance in dao (collectTokens)













 



