galacticcouncil/Basilisk-ui-old

[WIP]As a user, I want to see my asset balances for the selected assets in the trade form, so I know how much I can spend or want to buy.

Closed this issue · 0 comments

Detailed Description

Before performing a trade, it is important to display the current balance of each asset "in" and "out". In this way, the user can make an informed decision on how much can be spent or the amount to be bought.

Conditions

  • active account needs to be connected (get address)
  • asset needs to be selected (get asset)

Loading state

  • asset needs to be fetched

Acceptance criteria

When I go to the trade page and have no account connected, I don't expect any displayed asset balance.
When I have my account linked and one asset selected, I expect to see my balance of that asset.
When I have my account linked and both asset selected for the trade, I expect to see my balance of each asset.
When I have my account linked and no asset selected, I don't expect to see a balance.