Assessment reports>WOOFI Stake>Threat Model>compoundMP

Function: compoundMP(address _user)

This compounds a user's MP by updating rewards and debt, claiming and then restaking back to this contract.

Inputs

  • _user

    • Control: Only controllable by the admin; otherwise, it is the initial caller.

    • Constraints: Set to initial caller.

    • Impact: The user to compound MP for.

Branches and code coverage

Intended branches

  • Called by admin.

Negative behavior

  • Called by non-admin.

Zellic © 2024Back to top ↑