Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message when withdrawing insolvent asset #289

Open
FredCoen opened this issue May 25, 2022 · 1 comment
Open

Misleading error message when withdrawing insolvent asset #289

FredCoen opened this issue May 25, 2022 · 1 comment

Comments

@FredCoen
Copy link

When depositing 10 WETH and trying to withdraw 10 WETH after tome time on kovan where available liquidity is very thin and WETH is so to say insolvent quite often, the error message for a failing withdrawal is "Subtraction overflow". This is very confusing and shouldn't be the case. Aave front end validates the max amount able to withdraw. However when interacting from a smart contract this validation would have to be explicitly made in order to avoid a confusing error message. Why is the error message not more explicit here? What view methods can be used in the aave protocol to read the max withdrawable amount before submitting it to a withdraw?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@FredCoen and others