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

Missing Events in Staking.sol

Summary

State changing functions not emitting events.

Vulnerability Details

The following state changing functions does not emit events

  1. Staking.deposit()

  2. Staking.withdraw()

  3. Staking.claim()

  4. Staking.update()

  5. Staking.updateFor()

Impact

It makes it harder for front-ends and users of the contract to notice and deal with the contract state changes.

Tools Used

Manual review

Recommendations

Events should be added to the mentioned functions to emit the state changes that are made.

Support

FAQs

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