Normal behavior:
The protocol charges a fee on each order, calculated as a percentage of the order price. The fee is set as an integer (e.g., 3 for 3%) and divided by a precision constant (100), allowing only whole percentage fees.
Issue:
The contract cannot support fractional percentage fees (e.g., 0.5%) due to the low precision. This limits the protocol's ability to fine-tune fees for competitive or economic reasons, and may result in overcharging or undercharging users.
Likelihood:
Protocol may want to adjust fees to a more granular value in the future, such as 0.25% or 0.5%.
Current design limits flexibility and may require a contract upgrade to change.
Impact:
Inability to set precise fee rates, potentially making the protocol less competitive.
Potential loss of protocol revenue or overcharging users, affecting user satisfaction.
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.
View preliminary resultsAppeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.