Skip to content

Allow wallet users to choose TokenHolding inputs and outputs #241

Description

@3esmit

Problem

Wallet users cannot choose which TokenHolding an AMM action uses as its input or output.

When a wallet owns multiple TokenHoldings for the same token definition, the UI picks one implicitly or cannot continue. Output flows also do not let users choose between an existing TokenHolding and a new one.

Expected behavior

  • Inputs show no-funds state when none match, select the only match automatically, and ask the user when several match.
  • Outputs always let the user choose an existing matching TokenHolding or create a new one.
  • Selection is based on program account type and decoded account state so the wallet can reuse it for other program account types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions