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

Fix _withdraw() natspec #347

Merged
merged 5 commits into from
Dec 26, 2023
Merged

Fix _withdraw() natspec #347

merged 5 commits into from
Dec 26, 2023

Conversation

@Jean-Grimal Jean-Grimal requested review from a team, adhusson, Rubilmax, QGarchery, MerlinEgalite and MathisGD and removed request for a team December 12, 2023 18:19
@Jean-Grimal Jean-Grimal changed the title Fix '_withdraw()' natspec Fix _withdraw() natspec Dec 12, 2023
Copy link
Contributor

@Rubilmax Rubilmax left a 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

Rubilmax
Rubilmax previously approved these changes Dec 13, 2023
MerlinEgalite
MerlinEgalite previously approved these changes Dec 13, 2023
adhusson
adhusson previously approved these changes Dec 18, 2023
QGarchery
QGarchery previously approved these changes Dec 22, 2023
src/MetaMorpho.sol Show resolved Hide resolved
Co-authored-by: Quentin Garchery <QGarchery@users.noreply.github.com>
Signed-off-by: Jean-Grimal <83286814+Jean-Grimal@users.noreply.github.com>
src/MetaMorpho.sol Outdated Show resolved Hide resolved
@MathisGD MathisGD merged commit b07d041 into post-cantina Dec 26, 2023
6 checks passed
@MathisGD MathisGD deleted the fix/issue-497 branch December 26, 2023 22:05
@Jean-Grimal Jean-Grimal mentioned this pull request Dec 28, 2023
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

Successfully merging this pull request may close these issues.

6 participants