Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

Event is missing indexed fields

Summary

This report addresses the issue of missing indexed fields in events within the smart contract code. Indexing event fields makes accessibility easier to off-chain tools that parse events, optimizing the contract's interoperability and usability.

Vulnerability Details

Events that lack indexed fields may hinder the efficiency of off-chain tools in parsing and analyzing event data. Indexing fields allows for quicker access to specific event data points, optimizing the contract's interaction with external systems.

Impact

The impact of missing indexed fields in events includes:

  • Reduced Accessibility: Without indexed fields, accessing specific event data points becomes less efficient, potentially impacting the usability of the contract for off-chain tools.

  • Interoperability Concerns: Lack of indexed fields may hinder interoperability with external systems that rely on efficiently parsing event data for various purposes.

Tools Used

Manual code review

Recommendations

To address this issue, ensure that each event uses indexed fields appropriately. For events with three or more fields, use three indexed fields if gas usage is not a significant concern. For events with fewer than three fields, index all available fields to maximize accessibility for off-chain tools.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Info/Gas/Invalid as per Docs

https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity

Support

FAQs

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