You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I narrowed down the cause to frontend/src/contexts/PactContext.js:1835 where a negative amount is calculated for the denominator. I think this should not happen. See image:
this happens because I am trying to swap more than available reserve turning the values in the calculations negative giving strange values in the gui.
This requires more than a 1 line fix. "No enough liquidity" should be displayed.
trendzetter
changed the title
Price incorrectly calculated when selecting large amount in TO swap
Price incorrectly calculated when selecting large amount in TO swap: should display "not enough liquidity"
Jun 30, 2021
trendzetter
added a commit
to trendzetter/kadenaswap
that referenced
this issue
Jul 1, 2021
Scenario:
This issue does not occur when using a large amount in the FROM
The text was updated successfully, but these errors were encountered: