The SpookySwap
contract lacks event emissions for critical state-changing functions like setTreatCost
and resolveTrick
. This omission hinders transparency and makes it challenging to monitor and track essential operations off-chain. Without these events, stakeholders cannot reliably detect changes to treat costs or the resolution of pending NFT purchases, leading to reduced trust and potential difficulties in auditing and interfacing with the contract.
The setTreatCost
function allows the contract owner to update the cost of a specific treat. However, it does not emit an event to signal that a treat's cost has been modified.
he resolveTrick
function finalizes pending NFT purchases by transferring the NFT to the user and handling refunds. However, it does not emit any event to indicate that a pending purchase has been resolved.
The absence of events in the functions means that there is no on-chain traceability or transparency when the data is updated.
Manual review
For improved transparency and traceability, it’s recommended to emit events in key functions of your smart contracts. Events act as a communication bridge between the blockchain and off-chain applications, enabling users, developers, and external services to monitor contract activity effectively.
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.