Open k06a opened 4 years ago
@clementbalestrat we should include this over on https://github.com/Synthetixio/synthetix-exchange. @hav-noms do you think it's worth adding a require
check for this in Synthetix.exchange()
for better user feedback? I know you're loathe to add more code to that bulky contract 🙄
https://etherscan.io/tx/0x37a4cec23fb67ac06a88f28a156aad1b002e053ccf2fccf58637d223087193bf
It seems you tried to burn more than you have after fees applied:
And subtraction
balance.sub(amount)
reverts. You should fix UI (frontend) to pass the proper amount to exchange method, in case of an amount close enough to balance