aeternity / dex-ui

Superhero DEX - the official UI for the first automated market maker (AMM) on æternity.
https://dex.superhero.com
ISC License
6 stars 4 forks source link

Token allowance #466

Open Liubov-crypto opened 2 years ago

Liubov-crypto commented 2 years ago

What happened?

When allowing to use an additional amount of tokens in swap / pool transactions, an error appears that the balance of the token is insufficient:

https://user-images.githubusercontent.com/69896204/183685874-faf2289f-4b53-438e-8aad-b7c9dc941b8c.mov

cons error cons error1

How can we reproduce it?

  1. Go to https://aepp.dex.superhero.com/swap
  2. Connect wallet commit 4fc9539 / v.0.9.10
  3. Choose token A
  4. Choose token B
  5. Click on Allow pop-up
  6. Click on Swap
  7. See the error

Which device did this issue occur on?

Desktop

What browsers are you seeing the problem on?

Firefox

Anything else you want us to know?

The same error occurs when adding liquidity to a pool. Although the result is a successful transaction

kenodressel commented 2 years ago

After successfully submitting the transaction, we should clear the amount immediately to fix this.