DeFiLayer 1Layer 2
14,723 OP
View results
Submission Details
Severity: low
Valid

Missing Event Emission for update_profit_max_unlock_time

Summary

The function update_profit_max_unlock_time updates a critical contract parameter (profit_max_unlock_time) but does not emit an event to track the change. This reduces transparency and makes it difficult for external monitoring tools, indexers, etc to track updates efficiently

Tools Used

  • Manual review

Recommendations

Emit an event to log the changes, such as:

event ProfitMaxUnlockTimeUpdated:
previous_value: uint256
new_value: uint256
block_number: uint256
Updates

Lead Judging Commences

0xnevi Lead Judge 3 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-missing-event-emission-profit_max_unlock_time

I believe low severity to be appropriate here, events could be used to be more explicit for the upcoming effects on price for changes in max unlock time, similar to as included in `update_price` with the `PriceUpdate` event

Support

FAQs

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