The hook emits a ReFiSold event that includes a calculated feeAmount.
This value is intended to reflect the actual fee charged, which in Uniswap V4 uses 1e6 precision (e.g., 3000 = 0.3%).
However, the fee calculation in the event incorrectly divides by 100,000 (1e5) instead of 1,000,000 (1e6).
This makes the logged fee 10x larger than the real fee applied to the swap.
The issue only affects event reporting, not actual fee logic, but still leads to misleading economic and analytical data.
Likelihood:
Happens on every sell transaction.
Event systems, indexers, analytics, or dashboards will always record incorrect fee sizes.
Impact:
Logged fee values appear 10× larger than what users actually paid.
Misleads internal accounting, revenue tracking, dashboards, and data models.
Difficult for ecosystem participants to evaluate protocol performance or fee generation.
Can cause incorrect conclusions during audits or tokenomics reviews.
Event consumers now believe the user paid 300 tokens in fees instead of the real 30.
Use the correct Uniswap fee precision of 1e6.
This ensures event logs accurately reflect the same fee amount applied by the dynamic fee engine.
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.