Skip to content

Auto associate token for atomic swap for the requester #293

@kpachhai

Description

@kpachhai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature EnhancementEnhancing an existing feature driven by business requirements. Typically backwards compatible.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions