Improper event declaration #196
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Czar102
Vulnerability details
Impact
Proper event declaration eases off-chain monitoring.
Proof of Concept
In the case of qualitative variables, it is recommended to use
indexed
keyword.Despite the
uint duration
argument seems to be a quantitative one, it is limited to few values, which specify the "locking mode".Recommended Mitigation Steps
uint duration
variable should be considered qualitative and be markedindexed
in the following events:The text was updated successfully, but these errors were encountered: