The protocol earns money by taking a fee from each order’s priceInUSDC
However, due to integer truncation, any fractional remainder is silently discarded. Over time, this causes the protocol to lose revenue, especially on:
Low-priced orders (where rounding loss is proportionally large)
High-volume systems (where dust adds up)
Repeated micro-orders (e.g. bots or retail users)
In fee-sensitive systems like this, even tiny rounding errors directly affect earnings.
Likelihood:
Happens deterministically across all orders with fractional fees
Solidity has no built-in rounding — protocol leaves money on the table
Anyone can trigger this unintentionally (or intentionally with low-value orders)
Impact:
Protocol earns less than expected fee revenue
Buyers pay correct amounts, but seller receives more than they should
Over thousands of orders, fee slippage compounds
May impact long-term sustainability or tokenomics if fees are relied upon for funding ops/staking/incentives
Shows how the loss can affect protocol
Include this rather
Protocol Suffers Potential Revenue Leakage due to Precision Loss in Fee Calculation
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.