Function: vote(uint256[] _weights)
Votes the locked weight of the locker ID according to the user vote weights.
Inputs
_weights
Control: Completely controlled by caller.
Constraints:
tokens.length == _weights.length
Impact: 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
maxVoteDuration
if vote end exceeds the threshold.
Negative behavior
Reverts if
tokens.length != _weights.length
.Reverts if no lock is associated.