The state variable totalPenaltyFeesCollected is declared and initialized but never updated:
The hook applies penalty fees in _beforeSwap (lines 175-177):
However, totalPenaltyFeesCollected is never incremented when penalties are applied.
Low severity - broken accounting:
The variable exists to track total penalty fees but always returns 0
Any UI, dashboard, or integration relying on this metric gets incorrect data
Protocol transparency is compromised
If fee distribution logic depends on this, it would be broken
Low impact - informational/accounting issue. No direct fund loss but misleading protocol metrics.
Update the variable when penalties are applied:
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.