Assessment reports>Prisma Finance>Threat Models>clearRegisteredWeight

Function: clearRegisteredWeight(address account)

Clear registered weight and votes for account.

Inputs

  • account

    • Control: Controlled by the user.

    • Constraints: N/A.

    • Impact: The account's vote weights, points, lock length, and frozen weight are potentially cleared, depending on their current states.

Branches and code coverage (including function calls)

Intended branches

  • Case with only votes to clear.

  • Case with only lock to clear.

  • Case with only frozenWeight to clear.

Negative behavior

  • Failure case with nonapproved caller.

Zellic © 2025Back to top ↑