Function: increaseUnlockTime(uint256 _lockDuration)
Extends the unlock time for _lockerId
.
Inputs
_lockDuration
Control: Controlled by the caller.
Constraints: Must result in a new unlock time that is greater than the current unlock time and less than or equal to the maximum lock duration (two years) from the current timestamp.
Impact: Specifies the additional duration to extend the lock by.
Branches and code coverage (including function calls)
Intended branches
Lock duration increased successfully.
Negative behavior
Revert if no lock is associated with
msg.sender
.Revert if the existing lock has expired.
Revert if the locked amount is zero.
Revert if the new unlock time is not greater than the current unlock time.
Revert if the new unlock time exceeds the maximum lock duration (two years) from the current timestamp.