Function: vote(uint256[] _weights)
Votes the locked weight of the locker ID according to the user vote weights.
Inputs
_weightsControl: Completely controlled by caller.
Constraints:
tokens.length == _weights.lengthImpact: The vote weights of locker ID.
Branches and code coverage (including function calls)
Intended branches
Vote is successful with valid weights.
Vote duration is set to
maxVoteDurationif vote end exceeds the threshold.
Negative behavior
Reverts if
tokens.length != _weights.length.Reverts if no lock is associated.