Function: increaseUnlockTime(uint256 _days)
This function allows the user to extend the duration of the lock without changing the lock amount.
Inputs
_days
Control: Arbitrary.
Constraints: Greater than or equal to seven days. Less than or equal to two years.
Impact: Number of days the user wants to extend the lockout period.
Branches and code coverage
Intended branches
Call the
_deposit_for
function to update the user's lock time and update the voting power.
Negative behavior
Revert if extending lock to more than two years.