[BUG] ETH chain router upgrade

How to migrate from old router contract to new router contract

  1. a new version need to be release to chaosnet (0.59.0)
  2. When all nodes get upgrade to the latest version (0.59.0) , the store migration will update the ETH chain router to the new router address
  3. When the next churn get kicked off , ETH migration will migrate fund from old asgard to new asgard
  4. All ETH chain yggdrasil fund will be recalled back to the new router contract
  5. When yggdrasil vault return the fund to new router contract, yggdrasil vault's router address will be updated to the new one
  6. Once the network finished migration, the network will refund all yggdrasil vault from the new router

How to deal with XRUNE in THORChain vaults(asgard & yggdrasil) ?

At the moment , XRUNE has been taken out of current router contract, thus even asgard / yggdrasil still think it has all the allowance on XRUNE , but the token is not hold by router contract anymore. Which means the vault think it has some asset that router doesn't hold. The network need to make store migration to write off all the XRUNE asset in asgard & yggdrasil vault

Code change need to be made in bifrost when it trying to do yggdrasil return , XRUNE asset need to be exclude from the process

Test in Ropsten

At the moment, multichain testnet is not in a good state , so test this process out need to be done in a seperate chain

  1. Create a router contract using the old version of router code
  2. Create a private chain (testnet) using version 0.58.x on ropsten using using the router contract created at 1)
  3. Create a new router contract with the fix
  4. Release update to private chain to trigger an upgrade
  5. Verify the asset on old router has been all moved to new router
Edited Jul 08, 2021 by Heimdall
Assignee Loading
Time tracking Loading