Accurate event logging is crucial for on-chain transparency and off-chain data analysis. Currently, the protocol emits incorrect fee data in logs for sell transactions and omits fee information entirely for buy transactions.
For buy transactions, no fee value is emitted despite the fee variable being potentially non-zero in the future (currently zero).
For sell transactions, the emitted event records the calculated feeAmount rather than the actual fee returned by the function, causing discrepancies between on-chain state and event logs.
Likelihood: High
Every transaction logs inaccurate fee values, creating persistent mismatches.
Impact: High
Discrepancies between emitted events and actual on-chain fee state reduce transparency and trust. This affects protocol analytics, auditing, and third-party integrations reliant on event data.
For a sell transaction with a fee of 3,000 units, the event incorrectly logs a much higher fee amount calculated via feeAmount. This results in misleading on-chain logs that conflict with the actual fee applied by the contract.
Update the event emissions to consistently reflect the actual fee variable being returned by the function, ensuring logs accurately represent the state changes:
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.