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

Atomic Swap: Display error when unsufficient tokens #19

Open
Voorsie opened this issue Dec 18, 2021 · 0 comments
Open

Atomic Swap: Display error when unsufficient tokens #19

Voorsie opened this issue Dec 18, 2021 · 0 comments

Comments

@Voorsie
Copy link

Voorsie commented Dec 18, 2021

When a bridge has most users swapping one direction and the percentage of the supply accommodated to the bridge is low, a bridge can run out of tokens on one side.

When a user tries to claim their tokens, they receive a general error;
Please check and confirm your tokens have landed in your wallet. If not please try clicking the claim button one more time. If you see this message again, please contact support to claim your tokens

I would suggest to put a balance check in place, even before sending the claim tx so people are aware this transaction will not be able to be completed because of the low balance.

Even better would be to check this before sending the balance from the source, because this could save people a lot of gas fees (on ETH) for a swap that is deemed to not be successful and might need to be refunded.

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

1 participant