jediswaplabs / jediswap-v2-interface

GNU General Public License v3.0
6 stars 5 forks source link

Quote for insufficient balance state #340

Closed iamoskvin closed 1 month ago

iamoskvin commented 2 months ago

Description

If I enter a token amount that is higher than my balance, then the tx simulation (v2) fails, so we don't have a v2 quote and we use v1 quotes. But as we discussed before, it is not good because we display not the best prices. Maybe if the user entered an amount greater than the wallet balance, we should not give him any quotes. image image