Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: low
Invalid

Event Parameters in Deposit Event Should be Indexed for Improved Query Efficiency

Summary

The event Deposit within the contract emits from, to, and amount as parameters. Currently, these parameters are not indexed, potentially impacting the efficiency of querying event logs by these specific parameters.

Vulnerability Details

The issue lies in the event declaration. By not indexing these parameters, querying and filtering events by from, to, or amount may be less efficient, impacting the speed and cost-effectiveness of retrieving specific data within these events.

Impact

The lack of indexing may lead to increased gas costs and reduced efficiency when querying events by from, to, or amount. It might hinder the ability to swiftly and economically access and filter data related to these parameters within the event logs.

Tools Used

Manual inspection

Recommendations

Make the event parameters indexed

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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