The penalty fee is converted from basis points (1/10000) to Uniswap fee pips (1/1000000) by multiplying by 100.
For maximum penalty of 10000 bps (100%), this results in 1,000,000 fee pips.
While this fits in uint24 (max ~16.7 million), it represents a 100% fee which may have unintended effects.
Likelihood:
Owner would need to set penalty to exactly 10000 bps (100%)
Edge case that may not be intentional
Impact:
100% fee means the entire swap output goes to LPs
User receives nothing from the swap
While technically valid, may not be intended behavior
Max penalty 10000 bps converts to 1,000,000 pips - a 100% fee where user receives nothing.
Cap penalty at a reasonable max (e.g., 50%) to prevent 100% fee edge case.
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.