Assessment reports>Staking>Threat Model>compoundForAccount

Function: compoundForAccount(address _account)

Allows the handler to compound rewards for an account.

Inputs

  • _account

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: Account to compound for.

Branches and code coverage (including function calls)

Intended branches

  • Should claim rewards and stake them back.

  • Assumes all other relevant checks are performed in each claimForAccount and stakeForAccount function.

Negative behavior

  • Should not be callable by anyone other than the handler.

Zellic © 2024Back to top ↑