Assessment reports>Stable Predeposit>Threat Model>modifyPendingDepositWindow

Function: modifyPendingDepositWindow(uint64 newStart, uint64 newEnd)

This function allows administrators to reschedule a deposit window that has not yet begun — only callable by ADMIN_ROLE holders.

Inputs

  • newStart

    • Control: N/A.

    • Constraints: Must be in the future, nonzero, and strictly before newEnd.

    • Impact: Updates _depositStart, shifting when users can begin contributing capital.

  • newEnd

    • Control: N/A.

    • Constraints: Must be nonzero and after newStart, and the window must still be pending.

    • Impact: Updates _depositEnd, altering the deposit-window duration.

Branches and code coverage

Intended branches

  • Pending deposit window is modified with the new start and end timestamps.

Negative behavior

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

  • Revert if the deposit window is already live, preventing midstream changes.

  • Revert if the timestamps are invalid (zero values, start >= end, or start <= block.timestamp).

Function call analysis

  • None.

Zellic © 2025Back to top ↑