The withdrawFees
function changes the totalFees
state variable but doesn't emit an event.
Source Code:
There's no on-chain record (via events) when the owner withdraws funds, making it harder for external watchers (UIs, indexers, auditors) to track fee withdrawals.
While it doesn’t introduce a security vulnerability, a malicious owner could frequently withdraw funds without an easy way for users to monitor it via event logs.
Users and external monitors cannot easily track fee withdrawals. I consider it a Low, because it doesn't affect funcionality, but reduces transparency. Specially when it comes to an action that only the owner can perform.
If users want to verify when and how much was withdrawn, they’d have to scan transactions manually, which is inefficient.
Slither
Consider adding an event to broadcast the withdrawal of the fees:
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.