Snowman Merkle Airdrop

AI First Flight #10
Beginner FriendlyFoundrySolidityNFT
EXP
View results
Submission Details
Impact: low
Likelihood: high
Invalid

SnowEarned and FeeCollected events not emitted, leads to incorrect off-chain accounting.

Root + Impact

Under normal behavior, events should be emitted during critical state changes (e.g., reward distribution or fee collection) so that off-chain systems (indexers, frontends, analytics) can track protocol activity accurately.

  • In the current implementation, the SnowEarned and FeeCollected events are not emitted in their respective functions, despite state changes occurring. This leads to missing data for off-chain consumers that rely on events for accounting and tracking.

Risk

Likelihood:

  • Occurs on every execution of reward distribution or fee collection functions

  • Affects all off-chain systems relying on event logs (subgraphs, indexers, frontends)


Impact:

  • Off-chain accounting becomes incomplete or incorrect due to missing event data

  • Analytics, reward tracking, and user-facing dashboards fail to reflect actual protocol activityProof of Concept

Recommended Mitigation

Emit the respective events from the respective function calls for tokens earned and fees collected

- remove this code
+ add this code
Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge about 4 hours ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!