totalPenaltyFeesCollected state variable is never updatedThe TokenLaunchHook declares a state variable totalPenaltyFeesCollected intended to track the cumulative amount of penalty fees levied by the hook during the launch phases.
However, the variable is never updated within the _beforeSwap function or any other part of the contract logic. Even when applyPenalty is true and a penalty fee override is returned to the PoolManager, the counter remains at its initial value of 0.
Likelihood:
The logic to update the variable is entirely missing from the source code.
Impact:
Low. It doesn't lead to a loss of funds
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.