The UpliftOnlyExample contract uses a rounding method in the fee calculation that may result in slightly reduced fee collection for the protocol. The use of mulDown in calculating fees rounds down the result, potentially leading to a small loss in revenue over time.
The mulDown function rounds the result down to the nearest integer, discarding any fractional part of the fee. This rounding method can lead to the protocol collecting slightly less in fees than it would if the calculation were exact.
Over numerous transactions, the rounding down can accumulate to a non-trivial amount of lost fees, especially if the fee percentage is small and transaction volumes are high.
Manual Review
Consider the use of mulUp to capture fractional fees and maximize fee revenue.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.