Function: setStartTime(uint48 newStartTime, uint48 activeDuration)
This function is used to set the start time and active duration for deposits. It is only callable by the owner.
Inputs
newStartTimeControl: Arbitrary
uint48.Constraints: Must be greater than the current block timestamp.
Impact: New start time for deposits.
activeDurationControl: Arbitrary
uint48.Constraints: Must be greater than zero.
Impact: New active duration for deposits.
Branches and code coverage
Intended branches
Emit the
StartTimeUpdatedandEndTimeUpdatedevents.Update
startTimeandendTime.
Negative behavior
Revert if the caller is not the owner.
Revert if the new start time is less than the current block timestamp.
Revert if the active duration is zero.