The addLiquidityProportional() function aims to restrict users to 100 deposits to prevent potential DoS or resource exhaustion issues. However, due to an off-by-one error, users can still add liquidity even after making 100 deposits.
This condition fails to block users when they have exactly 100 deposits, contradicting the intended restriction.
The off-by-one error allows users to bypass the limit of 100 deposits by making a 101st deposit.
The issue arises because the condition uses > instead of >= to enforce the deposit limit.
Manual Review
Fix the condition
Only 1 more NFT won’t have any impact. Informational.
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.