_resetPerAddressTracking Only Resets Zero Address, Failing to Clear User Tracking on Phase TransitionsThe TokenLaunchHook is designed to reset per-address tracking when transitioning between phases. This allows users who may have hit their limits or accumulated penalties in Phase 1 to start fresh in Pahse 2 with new, more relaxed parameters.
The _resetPerAddressTracking function is called during phase transitions but only resets the tracking for address(0), leaving all actual user addresses with their accumulated swap amounts and penalty counts intact. Users who reached their limits in Phase 1 remain restricted in Phase 2 despite the intended fresh start.
Likelihood: High
Phase transitions occur automatically based on block numbers, triggering this faulty reset logic every time.
Every user who swapped during Phase 1 will be affected when Phase 2 begins.
Impact: Medium
Users who accumulated swap amounts in Phase 1 carry that balance into Phase 2, potentially exceeding Phase 2 limits immediately.
Users penalized in Phase 1 retain their penalty history, affecting their treatment in Phase 2.
The phase transition benefit of "fresh start" is completely non-functional.
Legitimate users may be unfairly restricted while expecting relaxed Phase 2 conditions.
Track active addresses and reset them properly.
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.