Hides native assets in asset selection for limit orders, as native assets are not supported.
Fixes 2 production bugs:
[phantom wallet only] Solana should not be shown in chain drop-down menus, but in prod it appears.
Chains for the "buy" asset which not supported by the wallet should appear in the chain drop-down on the right, but in prod they are disabled.
Issue (if applicable)
closes #6203
Risk
High Risk PRs Require 2 approvals
Moderate risk as this makes some minor refactors of the trade asset selection components.
What protocols, transaction types, wallets or contract interactions might be affected by this PR?
Testing
Thoroughly test asset selection, focusing on trade input and less so on limit orders - trades are user facing and limit orders are behind a feature flag.
Spot Trade
Native assets should still be allowed
[phantom wallet] Solana should not appear in the list of assets or chains (prod shows it in the chain drop-down on the right which is a bug)
Chains for the "buy" asset which not supported by the wallet should appear in the chain drop-down on the right (prod disables them which is a bug), and should prompt for a manual receive address
Limit order
Native assets should be hidden
[phantom wallet] Solana should not appear in the list of assets or chains
Chains for the "buy" asset which not supported by the wallet should appear in the chain drop-down on the right, and should prompt for a manual receive address
Engineering
Operations
[ ] :checkered_flag: My feature is behind a flag and doesn't require operations testing (yet)
Screenshots (if applicable)
Native assets hidden for limit order asset selection:
[phantom wallet] Solana should not appear in the list of assets or chains
Prod:
This PR:
Chains for the "buy" asset which not supported by the wallet should appear in the chain drop-down on the right.
Prod:
Description
Hides native assets in asset selection for limit orders, as native assets are not supported.
Fixes 2 production bugs:
Issue (if applicable)
closes #6203
Risk
Moderate risk as this makes some minor refactors of the trade asset selection components.
Testing
Thoroughly test asset selection, focusing on trade input and less so on limit orders - trades are user facing and limit orders are behind a feature flag.
Spot Trade
Limit order
Engineering
Operations
Screenshots (if applicable)
Native assets hidden for limit order asset selection:
[phantom wallet] Solana should not appear in the list of assets or chains Prod:
This PR:
Chains for the "buy" asset which not supported by the wallet should appear in the chain drop-down on the right. Prod:
This PR: