Assessment reports>MegaETH Predeposit>Threat Model>setEndTime

Function: setEndTime(uint48 newEndTime)

This function is used to set the end time for deposits. It is only callable by the owner.

Inputs

  • newEndTime

    • Control: Arbitrary uint48.

    • Constraints: Must be greater than the current block timestamp.

    • Impact: New end time for deposits.

Branches and code coverage

Intended branches

  • Emit the EndTimeUpdated event.

  • Update endTime.

Negative behavior

  • Revert if the caller is not the owner.

  • Revert if the new end time is less than the current block timestamp.

  • Revert if the new end time is less than the start time.

Zellic © 2025Back to top ↑