20,000 USDC
View results
Submission Details
Severity: gas
Valid

Use indexed events for value types as they are less costly compared to non-indexed ones

Summary

Vulnerability Details

Using the indexed keyword for value types (bool/int/address/string/bytes) saves gas costs, as seen in this example.

However, this is only the case for value types, whereas indexing reference types (array/struct) are more expensive than their unindexed version.

There are 5 instances of this issue:

Impact

Tools Used

Recommendations

Using the indexed keyword for values types bool/int/address/string/bytes in event

Support

FAQs

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