Indexing an event parameter makes the parameter more quickly accessible to off-chain tools that parse events. Indexed parameters appear in the structure of topics, not the data portion of the EVM log. Parameters that do not have the indexed
attribute are ABI-encoded into the data portion of the log.
There are 9 instances of this issue.
File Link | Instance Count | Instance Links |
---|---|---|
Lender.sol | 7 | 11,12,13,14,18,49,56 |
File Link | Instance Count | Instance Links |
---|---|---|
IERC20.sol | 2 | 5,6 |
Decreased usability of emitted events.
baudit: a custom static code analysis tool; manual review
Since there is a limit of three indexed
parameters per event, a best practice is:
If there are <= 3 parameters, all of the parameters should have the indexed
attribute.
If there are > 3 parameters, add the indexed
attribute to the three most important/useful parameters.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.