You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA Medium severity issue.RewardA payout will be made for this issue
maxWithdraw doesn't comply with ERC-4626 since it should return 0 if the deposit is paused.
Vulnerability Detail
The contract's maxWithdraw function doesn't comply with ERC-4626 which is a mentioned requirement. According to the specification, if withdrawals are entirely disabled (even temporarily) it MUST return 0..
The maxWithdraw is not returning 0 when the system is paused.
Impact
Failure to comply with the specification which is a mentioned necessity
sherlock-admin4
changed the title
Small Wool Squid - maxWithdraw doesn't comply with ERC-4626
Atharv - maxWithdraw doesn't comply with ERC-4626
Sep 15, 2024
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA Medium severity issue.RewardA payout will be made for this issue
Atharv
Medium
maxWithdraw
doesn't comply with ERC-4626Summary
maxWithdraw
doesn't comply with ERC-4626 since it should return 0 if the deposit is paused.Vulnerability Detail
The contract's maxWithdraw function doesn't comply with ERC-4626 which is a mentioned requirement. According to the specification,
if withdrawals are entirely disabled (even temporarily) it MUST return 0..
The
maxWithdraw
is not returning 0 when the system is paused.Impact
Failure to comply with the specification which is a mentioned necessity
Code Snippet
https://github.com/sherlock-audit/2024-08-sentiment-v2/blob/main/protocol-v2/src/SuperPool.sol#L220
Tool used
Manual Review
Recommendation
Return 0 when the withdrawals is paused.
Duplicate of #110
The text was updated successfully, but these errors were encountered: