The fee calculation mechanism uses integer division which causes precision loss for small swap amounts, potentially allowing fee avoidance through micro-transactions and undermining the protocol's revenue model.
Impact:
Very small swaps may incur zero fees
Potential for fee avoidance through micro-transactions
Minor economic impact
Add the following to `RebateFiHookTest.t.sol`
Also:
Consider minimum swap amounts
Use scaled fee calculations for better precision
Accept as known limitation of integer math
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.