The issue arises from the incorrect use of the comparison operator in the check.
Change
if (fraction.base > 10_000) {
revert MevEthErrors.BelowMinimum();
}
to
if (fraction.base < 10_000) {
revert MevEthErrors.BelowMinimum();
}
Description
PATH: MevEth.sol
The withdraw() and redeem() functions in the MevEth contract include a check to ensure that the contract has a minimum balance to handle potential withdrawal and redemption requests. However, the current implementation of the check is problematic: if (fraction.base > 10_000) lines 496 and 539, as it could lead to a scenario where the contract has 10_000 shares or more (most likely), causing further withdrawals and redemptions to be restricted.
Status
Reported
Type
Vulnerability
Severity
Highest
Code Snippet:
Remediation
The issue arises from the incorrect use of the comparison operator in the check.
Change
to
Description