Assessment reports>MegaETH Predeposit>Threat Model>setStartTime

Function: setStartTime(uint48 newStartTime, uint48 activeDuration)

This function is used to set the start time and active duration for deposits. It is only callable by the owner.

Inputs

  • newStartTime

    • Control: Arbitrary uint48.

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

    • Impact: New start time for deposits.

  • activeDuration

    • Control: Arbitrary uint48.

    • Constraints: Must be greater than zero.

    • Impact: New active duration for deposits.

Branches and code coverage

Intended branches

  • Emit the StartTimeUpdated and EndTimeUpdated events.

  • Update startTime and endTime.

Negative behavior

  • Revert if the caller is not the owner.

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

  • Revert if the active duration is zero.

Zellic © 2025Back to top ↑