MyCut

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

Missing events

Summary

The existing codebase exhibits a notable deficiency in event emission for crucial operations across both contract implementations. This omission of key events may hinder effective monitoring and debugging of contract behavior, potentially obscuring significant state transitions from external systems.

Vulnerability Details

Event emission is a cornerstone of robust smart contract architecture, serving as a crucial record of significant actions and state alterations within the contract ecosystem.

However, the following sections of the codebase demonstrate instances where pertinent actions occur without corresponding event emissions:

  1. Funding

  2. Creation of contest

  3. Contest termination

  4. Reward collection

Impact

The lack of event emissions for pivotal state alterations can result in various challenges, including diminished transparency, compatibility issues with external systems, and increased potential for disagreements. Without the clear audit trail provided by events, tracking significant activities or state modifications in the decentralized application becomes arduous.

Tools Used

Manual Code Review

Recommendations

It is advisable to implement event emissions for all critical state-altering operations and other significant actions within the contract framework.

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.