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

Auto associate token for atomic swap for the requester #293

Open
kpachhai opened this issue Apr 9, 2024 · 0 comments
Open

Auto associate token for atomic swap for the requester #293

kpachhai opened this issue Apr 9, 2024 · 0 comments
Labels
Feature Enhancement Enhancing an existing feature driven by business requirements. Typically backwards compatible.

Comments

@kpachhai
Copy link
Contributor

kpachhai commented Apr 9, 2024

Problem

Currently, atomic swap works but if user1 is trying to swap their 1 hbar to 5 token(whatever token) and user1 hasn't associated 5 tokens before, the swap will be unsuccessful.

Solution

It makes sense to auto-associate a token if the atomic swap for the responder contains a token other than hbar. This way, whenever the tx is processed, it doesn't fail because of TOKEN_NOT_ASSOCIATED error

Alternatives

No response

@kpachhai kpachhai added the Feature Enhancement Enhancing an existing feature driven by business requirements. Typically backwards compatible. label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Enhancement Enhancing an existing feature driven by business requirements. Typically backwards compatible.
Projects
None yet
Development

No branches or pull requests

1 participant