Assessment reports>Programmable Derivatives>Threat Model>setDepositEndTime

Function: setDepositEndTime(uint256 newDepositEndTime)

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

Inputs

  • newDepositEndTime

    • Control: Arbitrary.

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

    • Impact: The new deposit end timestamp.

Branches and code coverage

Intended branches

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

Negative behavior

  • Revert if the caller is not the owner.

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

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

  • Revert if the pool has already been created.

Zellic © 2025Back to top ↑