Assessment reports>Stable Predeposit>Threat Model>modifyStartedDepositWindow

Function: modifyStartedDepositWindow(uint64 newEnd)

This function lets administrators extend (but not reopen) an already started deposit window by updating its end timestamp — only callable by ADMIN_ROLE holders.

Inputs

  • newEnd

    • Control: N/A.

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

    • Impact: Adjusts _depositEnd while preserving the existing start time, which has already passed.

Branches and code coverage

Intended branches

  • Update the _depositEnd with the new end timestamp.

Negative behavior

  • Non-admin callers or calls outside Deposit mode revert.

  • Revert if the window has not started yet.

  • Revert if the new end timestamp is in the past.

Function call analysis

  • None.

Zellic © 2025Back to top ↑