bancorprotocol / webapp

Bancor Swap/Analytics webapp
https://app.bancor.network
MIT License
32 stars 45 forks source link

updating token lists when switching between market and limit options on the swap #1474

Closed ashachaf closed 3 years ago

ashachaf commented 3 years ago

Describe the bug when switching between "market" to "limit" options in the swap widget, we are expected to update the available token lists according to the availability on each option. this should be done automatically.

currently, when selecting "vBNT" on the market option and switching to limit option, the system allows users to proceed with creating limit order for a token that is not available.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'swap'
  2. Click on market -> set up a trade where the "toToken = vBNT"
  3. switch to limit option expected - toToken list to automatically be updated to supported tokens (use default tokens ETH or BNT. IF fromToken = ETH -> set BNT, else set ETH) actual - system allows me to proceed with vBNT