Assessment reports>WOOFI Stake>Threat Model>compoundAllForUsers

Function: compoundAllForUsers(address[] _users)

This is the same as compoundAll(address _user), except for a list of users. It reimplements compoundRewards(_user) in a more optimized way for cases where there are multiple users, by only doing one swap per rewarder. It is an admin-only function.

Inputs

  • _users

    • Control: Fully controllable by the admin.

    • Constraints: None.

    • Impact: The list of users to run compound for.

Branches and code coverage

Intended branches

  • Call with multiple users.

Negative behavior

  • Call with zero users.

  • Direct call by non-admin.

Zellic © 2024Back to top ↑