Assessment reports>Staking>Threat Model>stakeGs

Function: stakeGs(uint256 _amount)

Allows msg.sender to stake gs on behalf of msg.sender.

Inputs

  • _amount

    • Control: Fully controlled by the handler.

    • Constraints: None.

    • Impact: Amount to be staked.

Branches and code coverage (including function calls)

Intended branches

  • Allows msg.sender to stake gs.

  • Calls IRewardTracker.stakeForAccount with gs tracker.

  • Calls IRewardTracker.stakeForAccount with bonus tracker.

  • Calls IRewardTracker.stakeForAccount with fee tracker.

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

Zellic © 2024Back to top ↑