Assessment reports>Staking>Threat Model>claimPool

Function: claimPool(address _gsPool)

Allows msg.sender to claim all rewards for a pool.

Inputs

  • _gsPool

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: The pool to claim from.

Branches and code coverage (including function calls)

Intended branches

  • Allows msg.sender to claim all rewards for a pool (rewardTracker, loanRewardTracker, and vester).

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

Negative behavior

  • Should not allow calling an unregistered pool.

Zellic © 2024Back to top ↑