Missing Emit in critical function #35
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cyberboy
Vulnerability details
Impact
Events for critical state changes (e.g., owner and other critical parameters) should be emitted for tracking this off-chain.
Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L41-L43
The function "setEmergencyGov" is missing event emit, and it is a critical function used for setting emergency governer.
Tools Used
Slither
Recommended Mitigation Steps
Add an event and emit it as a new emergency governor is set.
The text was updated successfully, but these errors were encountered: