In UpliftOnlyExample.sol, the user is restricted to 100 deposits to avoid Ddos issues. However, number of a particular user’s deposit can exceed 100 count by ‘1’ in the UpliftOnlyExample.sol.
In the function addLiquidityProportional in UpliftOnlyExample.sol, the user is restricted to 100 deposits to avoid Ddos issues. But the user can exceed this value by ‘1’ due to the check imposed in the ‘if’ logic at line #226.
Here, the user is able to add liquidity even if the number of deposits by this user equals 100 as the condition “(poolsFeeData[pool][msg.sender].length > 100)” evaluates to False.
The user is restricted to 100 deposits to avoid Ddos issues.
Likelihood is medium but the impact is low.
Manual review
Consider checking as “poolsFeeData[pool][msg.sender].length > 99” or “poolsFeeData[pool][msg.sender].length >= 100”. The modified portion of code can be:
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.