bancorprotocol / webapp

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

improve error in case of empty pool #1520

Closed ashachaf closed 3 years ago

ashachaf commented 3 years ago

Describe the bug when trying to swap into a token when the converter has 0 balance, you see this error message.

image

To Reproduce Steps to reproduce the behavior:

  1. Go to swap
  2. select to token as DCN
  3. See error

How to fix when the pair includes a pool that is empty:

  1. indicate that the pool is empty
  2. offer the user to add liquidity to the pool
  3. disable the option to swap mockup: TBA