Assessment reports>WOOFI Stake>Threat Model>compoundRewards

Function: compoundRewards(address _user)

This compounds all the rewards from every rewarder, claiming and swapping the rewards for WOO, then restaking them back.

Inputs

  • _user

    • Control: Not controllable by normal user. Called indirectly.

    • Constraints: Set to the original caller's address for non-admins.

    • Impact: The address to compound rewards for.

Branches and code coverage

Intended branches

  • Called by admin for a user.

Negative behavior

  • Called by non-admin.

Zellic © 2024Back to top ↑