-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix _withdraw() natspec #347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we also update the test testWithdrawMoreThanTotalAssets
which expects to revert with NotEnoughLiquidity
whereas it should revert either with an ERC4626 error or an underflow
But for now it reverts with NotEnoughLiquidity
because Blue doesn't have enough liquidity. We should make so another supplier provides enough liquidity on Blue
testWithdrawMoreThanBalanceButLessThanLiquidity
should also be renamed testWithdrawMoreThanBalanceAndLiquidity
f8faed7
Co-authored-by: Quentin Garchery <[email protected]> Signed-off-by: Jean-Grimal <[email protected]>
Fixes https://cantina.xyz/code/8409a0ce-6c21-4cc9-8ef2-bd77ce7425af/findings/637922bd-c38b-4ea0-bb51-a1420a47d088