DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: low
Invalid

Lack of Event Emission

Summary

When critical state variables (e.g., router) are updated in setRouter function no events are emitted. This makes it harder to track updates. Events in solidity provides transparency about what happens within a smart contract. Without events important updates like changing the router address are not logged on the contract in a way that can be easily tracked or monitored.

Impact

  1. Reduced Transparency
    A blockchain key strength is its transparency. Without events, users, developers, or external systems monitoring the contract can not easily observe critical actions such as changes in state variables.

  2. Users Trust and Accountability
    Users interacting with contract rely on emitted events to verify the proper functioning of the contract.

Tools Used

Manual review

Recommendations

Emits an event whenever setRouter is called

Updates

Appeal created

inallhonesty Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
inallhonesty Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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