Closed paouvrard closed 3 years ago
This is issue is caused by checkStatus
being called in between these 2 async calls: track
and withdraw
https://github.com/aurora-is-near/rainbow-bridge-client/blob/958578e606816be463c91d87b9b6990b34166ceb/packages/nep141-erc20/src/bridged-nep141/sendToEthereum/index.js#L330
I've observed in some cases that a transfer initialization (nep141 burn/ $NEAR lock) can fail with this error as if the urlParam was not set here before checkWithdraw is called and marks the transfer as failed. Instead since the url param should already be set,![image](https://user-images.githubusercontent.com/29397451/118636841-17031e80-b810-11eb-8f1c-c02a1fcfb427.png)
checkWithdraw
should simply ignore this transfer because the redirect has not happened yet.