AlphaWallet / TokenScript-Repo

A repo full of signed TokenScript files which are served to AlphaWallet
7 stars 10 forks source link

Remove/disable xDai bridge (to Dai) #30

Closed hboon closed 3 years ago

hboon commented 3 years ago

Context: user uses the xDai bridge TokenScript. Transaction goes through on xDai chain, but Dai does not appear on Ethereum mainnet.

Boon:

This is strange. I didn't write the TokenScript; So I just checked this out.

These describe 2 ways to use the xDai bridge (to convert to Dai):

A. https://docs.tokenbridge.net/xdai-bridge/using-the-xdai-bridge/how-to-use-xdai-bridge-without-ui B. https://www.xdaichain.com/for-users/converting-xdai-via-bridge/moving-xdai-to-dai

I guess the latter uses the former. We are using the former in our TokenScript. But either way, there is a 2-step process:

  1. Transfer xDai on the xDai chain
  2. Withdraw from Ethereum mainnet

Our TokenScript file only does (1). I wonder if (2) used to be done by (xDai) folks running the validators? I thought we were one of the validators. James S used to work on this. Does @Soylentblue know how this work? @victor928 did the xDai bridge ever work?

For @STJ89, I think a quick turnaround is to attempt to do (2) described in A for the user (I'm not sure if it can be done by the someone else other than the original sender, but I guess it can be). Watch out for the gas fee and what it prompts you to do, just to be safe

Victor:

Don’t know why. But they add an extra step.

I haven’t used xdai for months. They must updated something.

They provide a dapp for the bridge, so we can link to that until we improve this TokenScript file https://bridge.xdaichain.com/

hboon commented 3 years ago

Forgot it's bundled with the app. No action required.