The withdraw() function, which allows the host to withdraw all ERC20 tokens (WETH, WBTC, USDC), does not emit any events to track these significant state changes.
The function performs three significant token transfers but fails to emit any events. This lack of transparency makes it difficult for:
Users to track when and how much the host withdrew
Off-chain systems to monitor withdrawals
Auditors to trace the flow of funds
DApps to react to withdrawal events
While this doesn't directly affect the security of the funds, it significantly reduces transparency and makes it harder to track the contract's activity. This could:
Reduce user trust
Complicate integration with other systems
Make auditing more difficult
Prevent proper monitoring of host activities
Manual review
Add an event definition for withdrawals:
Modify the withdraw function to emit the event:
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.