Assessment reports>Staking>Threat Model>claimForAccount

Function: claimForAccount(address _account, address _receiver)

Allows claiming of rewards on behalf of another account.

Inputs

  • _account

    • Control: Fully controlled by the caller (handler).

    • Constraints: Only a handler can call this function.

    • Impact: The account that will be claimed for.

  • _receiver

    • Control: Fully controlled by the caller (handler).

    • Constraints: None.

    • Impact: The destination for the claimed rewards.

Branches and code coverage (including function calls)

Intended branches

  • Deletes the claimableReward for the _account.

  • Transfers the tokenAmount of reward tokens to the _receiver.

Negative behaviour

  • Should not be callable if isPrivateClaimingMode is true.

  • Should not leave any rewards to be claimed again.

Zellic © 2024Back to top ↑