Function: transferPoints(address from, address to, uint256 points)
Claim accrued tokens for initiator and transfer a number of allocation points to a recipient.
Inputs
fromControl: Controlled by the user, but the caller must be the
fromaccount or a delegate of thefromaccount.Constraints: Must exist and have enough allocation points to be able to transfer the number of points specified.
Impact: The
fromaccount's allocation points are decreased by the number of points, and the claimed tokens are adjusted proportionally.
toControl: Controlled by the user.
Constraints: Should not be a zero address or the same as the
fromaccount.Impact: The
toaccount's allocation points are increased by the number of points, and the claimed tokens are adjusted proportionally.
pointsControl: Controlled by the user.
Constraints: The number of points should be greater than zero and less than or equal to the number of allocation points the
fromaccount has. It must also not cause a situation where thefromaccount has claimed more tokens than vested.Impact: The specified number of points are transferred from the
fromaccount to thetoaccount.
Branches and code coverage (including function calls)
Intended branches
Successful transfer points.
Negative behavior
Failure case with zero points to be transferred.
Failure case with excess points.