Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Events are not `indexed`

Summary

The emitted events are not indexed, making off-chain scripts such as front-ends of dApps to filter the events efficiently.

Vulnerability Details

Indexed event fields make the field more quickly accessible to off-chain
tools that parse events like The Graph. However, note that each index field costs extra gas during emission, so it’s not necessarily best to index the maximum
allowed per event (three fields)

Tools Used

Manual Review

Remediation Steps

Add the indexed keyword in each event, e.g., event Distributed(address token, address[] winners, uint256[] percentages, bytes data);.

Support

FAQs

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