Assessment reports>Prisma Finance>Threat Models>transferPoints

Function: transferPoints(address from, address to, uint256 points)

Claim accrued tokens for initiator and transfer a number of allocation points to a recipient.

Inputs

  • from

    • Control: Controlled by the user, but the caller must be the from account or a delegate of the from account.

    • Constraints: Must exist and have enough allocation points to be able to transfer the number of points specified.

    • Impact: The from account's allocation points are decreased by the number of points, and the claimed tokens are adjusted proportionally.

  • to

    • Control: Controlled by the user.

    • Constraints: Should not be a zero address or the same as the from account.

    • Impact: The to account's allocation points are increased by the number of points, and the claimed tokens are adjusted proportionally.

  • points

    • Control: 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 from account has. It must also not cause a situation where the from account has claimed more tokens than vested.

    • Impact: The specified number of points are transferred from the from account to the to account.

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.

Zellic © 2025Back to top ↑