MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Missing Event Emissions for Critical Actions

Summary

The Pot smart contract lacks event emissions for critical actions such as claiming rewards and closing the pot. Events are crucial for enabling transparency, providing a reliable off-chain record of contract activities, and facilitating easier monitoring and debugging. The absence of events can make it difficult for users and developers to track the contract's state and actions.

Vulnerability Details

The contract does not emit any events when important actions, such as claiming rewards or closing the pot, occur. Without events, these actions are not easily traceable off-chain, limiting the ability to monitor and audit the contract's behavior. Best practices dictate that contracts emit events for key state changes and important actions to ensure that these activities can be tracked and verified off-chain.

Impact

  • The absence of events hinders the ability to monitor contract activity off-chain, reducing transparency for users and developers.

  • Without events, it becomes harder to debug issues or audit the contract's behavior, as there is no off-chain record of critical actions.

  • Users may find it difficult to trust the contract if they cannot verify that actions like claiming rewards or closing pots are occurring as expected.

Tools Used

Manual Review

Recommendations

To resolve this issue, add event emissions to the Pot contract for critical actions such as claiming rewards and closing the pot.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing Events

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.