The hook should enforce both cooldown AND swap limit protections independently.
The limit check has !applyPenalty condition (line 167), so if cooldown violation sets applyPenalty = true, the limit check is skipped entirely. Users can exceed limits by intentionally violating cooldown.
Likelihood:
Any user can intentionally trigger this by swapping before cooldown expires
Especially profitable for bots during token launches
Attack costs only the penalty fee
Impact:
Users can bypass swap limits by violating cooldown and paying penalty
Bots can dump 5x their limit by paying 10% penalty fee
For bots front-running price crashes, 10% penalty is acceptable cost
Completely defeats anti-bot limit mechanism
Run: forge test --mt test_CooldownBypassesLimitCheck -vv
Test shows bot swaps twice, violating cooldown on second swap, and exceeds limit because limit check was skipped.
Check both independently:
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.
The contest is complete and the rewards are being distributed.