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
newEndControl: N/A.
Constraints: Must be strictly greater than the current
block.timestamp.Impact: Adjusts
_depositEndwhile preserving the existing start time, which has already passed.
Branches and code coverage
Intended branches
Update the
_depositEndwith 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.