Unnecessary validation is used in deposit function.
deposit function uses revertIfZero to check if wethToDeposit is not zero.
However, this validation is unnecessary because more strict validation is used inside the function.
As you can see in the code snippet above, 'wethToDeposit' must be greater than or equal to MINIMUM_WETH_LIQUIDITY(1e9).
Therefore, if this condition is met, wethToDeposit cannot be 0.
Therefore, the revertIfZero modifier is called unnecessarily.
Users end up consuming gas by calling unnecessary modifiers.
Manual review
Please remove modifier revertIfZero in the deposit function.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.