Assessment reports>Programmable Derivatives>Threat Model>setDepositStartTime

Function: setDepositStartTime(uint256 newDepositStartTime)

This function is used to update the deposit start time. It can only be called by the owner before the current start time.

Inputs

  • newDepositStartTime

    • Control: Arbitrary.

    • Constraints: Must be greater than the current start time and less than the current end time.

    • Impact: The new deposit start timestamp.

Branches and code coverage

Intended branches

  • Update the deposit start time to the new start time.

Negative behavior

  • Revert if the caller is not the owner.

  • Revert if the new start time is less than or equal to the current start time.

  • Revert if the new start time is greater than or equal to the current end time.

Zellic © 2025Back to top ↑