Function: increaseAmount(uint256 _value)
This function allows users to increase the amount of lockedToken without changing the lock time.
Inputs
_value
Control: Arbitrary.
Constraints: Greater than or equal to
minLockedAmount
.Impact: The amount of lockedToken that the user wants to increase.
Branches and code coverage
Intended branches
Call the
_deposit_for
function, calculate the new voting power, and update the locked amount.
Negative behavior
Revert if
_value
is less thanminLockedAmount
.