Cross-chain Token Swap Instruction

Function introduction

Cross-chain service enables to swap assets between Ethereum ERC20 tokens and equivalent Metaverse MST.

Link Ethereum with Metaverse Avatar or address

Get transaction data of address to be linked

Light wallet myetpwallet

  1. Open menu, Click Ethereum bridge
    Link to Ethereum address

  2. Click tab Ethereum -> Metaverse
    Generate data

  3. Choose the avatar or address to be linked, and copy the generated raw data
    Choose avatar or address

Full-node wallet

  1. Open the address page and choose the Avatar or address to be linked; Click Link to Ethereum
    Link to Ethereum address

  2. Click Generate data
    Generate data

  3. Click Copy data
    Copy data

Execute the smart contract to link Ethereum address with Metaverse avatar or address

  1. Open Ethereum wallet which supports sending raw transaction data, such as myetherwallet or imtoken,and start a ETP transferring transaction.

  2. Click Advance options,paste the copied data to hex raw data field.
    Link Ethereum address with Metaverse Avatar

  3. The recipient address should be the address of binding ETP address contract:0xa52b0a032139e6303b86cfeb0bb9ae780a610354. You can copy this address from Metaverse wallet.
    Copy address of binding ETP address contract

  4. The value to send is :0 ether

  5. Then click Next to finish the transaction.

Swap from Ethereum ERC20 token to Metaverse MST

Send ERC20 token to the Ethereum address of ETP-Swap center

Open Ethereum wallet and choose the ERC20 token to be swapped and send them to the Ethereum address of ETP-Swap center: 0xc1e5fd24fa2b4a3581335fc3f2850f717dd09c86.
Send `ERC20` token to the Ethereum address of ETP-Swap center

Query

Please be patient and wait for the token swap. It takes a little bit longer time to process transactions on two chains. You could query the swapped MST assets in the myetpwallet or blockchain explorer and the name of this MST starts with ERC20. by default.

Swap from Metaverse MST to Ethereum ERC20 token

Light wallet myetpwallet

  1. Choose the MST to be swapped and click Swap
    Choose MST

  2. Fill the swap amount and the recipient Ethereum address. The fee of swaping token is 1 ETP.
    Swap asset

Full-node wallet

  1. Choose the MST to be swapped and click Transfer
    Choose MST

  2. Choose I want to swap this MST to its ERC20 equivalent on the transfer page and fill the swap amount and the recipient Ethereum address. The fee of swaping token is 1 ETP.
    Swap asset

Swap from Ethereum ETH to Metaverse ETP

Send ETH to the Ethereum address of ETP-Swap center

Open Ethereum wallet and send ETH to the Ethereum address of ETP-Swap center: 0xc1e5fd24fa2b4a3581335fc3f2850f717dd09c86.

Query

Please be patient and wait for the token swap. It takes a little bit longer time to process transactions on two chains. You could query the swapped ETP in the myetpwallet or blockchain explorer. The swapped ETP transcation has message attachment with format ‘[exchange rate, amount, ETH, ETH transation hash]’

{
"address" : "MBkcJ6YsnG1G97tFJuBcytDxfk5F8hCp2g",
"attachment" :
{
"content" : "[\"68.82119539759908\", \"0.0000099\", \"ETH\", \"0x2872875c7b08ec0786309864207f883d3e9f609a232a3cb7c53ec7d0a9e87099\"]",
"type" : "message"
},
"index" : 2,
"locked_height_range" : 0,
"script" : "dup hash160 [ 34f4acd8ee7551fd5558c6dc60c0a6160a1f2119 ] equalverify checksig",
"value" : 0
},

Notes

For now we support swap from Ethereum ETH to Metaverse ETP only. The maximum amount of ETH to be swapped each time is 20.

Amount of ETH Swap Fee rate
<= 1 2.0%
<= 5 2.5%
<= 10 3.0%
<= 15 3.5%
<= 20 4.0%