Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accidentally sent to the wrong token recipient which caused minting error #268

Closed
0xzucchini opened this issue Jul 28, 2021 · 3 comments
Closed

Comments

@0xzucchini
Copy link

0xzucchini commented Jul 28, 2021

Hi developers, I knew here is not a good place to ask about bridge transaction issues.
However, I couldn't find the support team in discord channel. That's why I try to reach out to you guys here.

My issue is that I sent FRAX to my Solana BUSD address as below transaction shows:

(My token didn't mint out because of this line's protection https://github.com/certusone/wormhole/blob/main/solana/bridge/src/processor.rs#L933)

It seems that wormhole contracts didn't have any rescue methods. Is there any way to rescue this stuck tokens? 🙏

Many thanks

@hendrikhofstadt
Copy link
Contributor

I'm surprised any UI would let you do that.

Still, you are right there is no way to "rescue" funds for a good reason:
Wormhole transfers are final (even if funds don't arrive on the other end due to wrong addresses etc, which in this case is a Solana implementation detail) because if there was a "rescue" function, it would either let you intercept transfers (DoS) or cause double spending (deleting the wrong token account and creating one with the right mint which is possible with non-associated token accounts after calling the rescue function).

This unfortunately means your transfer is irreversible unless you manage to create a token account with the correct mint at that address.

@0xzucchini
Copy link
Author

@hendrikhofstadt Got it. It's my fault that I put the wrong address directly in the etherscan without using any UI. Thanks for answering my question. 🙏

@0xzucchini
Copy link
Author

@hendrikhofstadt Sorry to bother you again. I'm not really familiar with Solana contract. According to this

This unfortunately means your transfer is irreversible unless you manage to create a token account with the correct mint at that address.

I'm wondering if I could close associated account and re-initialize it again with the same address but different main tokens?

Like below demonstration:
https://solscan.io/account/J8JMfBXr28abkANrcd92aLiFNAuWR9WNgCDzYVNSwrce
2Gj4vrk1WYuU3kwd...: Originally, it's for wfrax balance
84M4Nzun7zXCBbjY...: Turned out to be wbnb balance

I think I need to get the associated account's private key which I can use it as a signer like above shows. So, is it possible to do that? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants