Function: extendLock(uint256 _amount, uint256 _weeks, uint256 _newWeeks)
Extend the length of an existing lock.
Inputs
_amount
Control: Controlled by the user.
Constraints: Must be larger than zero.
Impact: Amount of tokens to extend the lock for.
_weeks
Control: Controlled by the user.
Constraints: Must be larger than zero and less than
_newWeeks
.Impact: The number of weeks for the lock that is being extended.
_newWeeks
Control: Controlled by the user.
Constraints: Must be larger than
_weeks
.Impact: The number of weeks to extend the lock until.
Branches and code coverage (including function calls)
Intended branches
Successfully extend the length of an existing lock.
Negative behavior
Test when the
msg.sender
is frozen.