Wrong checking how many deposit user have in UpliftOnlyExample::addLiquidityProportional, one user can deposit 101 times.
In UpliftOnlyExample, to avoid Ddos issues, a single depositor can only deposit 100 times. And addLiquidityProportional function have a checking to ensure that.UpliftOnlyExample.sol#L226-L228
This checking code is wrong, it use > in stead of >=. It is not revert if user have 100 deposits. And after this, user still can deposit one more time.
User can deposit 101 times.
Place this test into UpliftExample.t.sol.
Then in /2024-12-quantamm/pkg/pool-hooks run forge test --mt test_userCanDeposit101Times. It passes.
Manual review
Foundry
Use >= instead of >.
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.