Assessment reports>Staking>Threat Model>stakeGsForAccount

Function: stakeGsForAccount(address _account, uint256 _amount)

Allows the handler to stake gs on behalf of account.

Inputs

  • _account

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: gs is staked on behalf of _account.

  • _amount

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: gs is staked on behalf of _account.

Branches and code coverage (including function calls)

Intended branches

  • Staked on behalf of the handler for account.

  • Calls IRewardTracker.stakeForAccount with gs tracker.

  • Calls IRewardTracker.stakeForAccount with bonus tracker.

  • Calls IRewardTracker.stakeForAccount with fee tracker.

  • Assumes all other necessary checks are performed in IRewardTracker.stakeForAccount.

Negative behavior

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

Zellic © 2024Back to top ↑