Function: setEndTime(uint48 newEndTime)
This function is used to set the end time for deposits. It is only callable by the owner.
Inputs
newEndTimeControl: Arbitrary
uint48.Constraints: Must be greater than the current block timestamp.
Impact: New end time for deposits.
Branches and code coverage
Intended branches
Emit the
EndTimeUpdatedevent.Update
endTime.
Negative behavior
Revert if the caller is not the owner.
Revert if the new end time is less than the current block timestamp.
Revert if the new end time is less than the start time.