Assessment reports>Staking>Threat Model>setupGsStaking

Function: setupGsStaking()

Sets up all the GS Staking contracts.

Branches and code coverage (including function calls)

Intended branches

  • Checks that the handlers are set. (All the functions are callable by the handlers.)

Function call analysis

  • setupGsStaking -> IRewardTracker(_rewardTracker).setHandler(_bonusTracker, true)

    • What is controllable? Nothing.

    • What happens if it reverts, reenters, or does other unusual control flow? N/A.

    • If return value is controllable, how is it used and how can it go wrong: Discarded.

  • setupGsStaking -> IRewardTracker(_bonusTracker).setInPrivateClaimingMode(true)

    • What is controllable? Nothing.

    • What happens if it reverts, reenters, or does other unusual control flow? N/A.

    • If return value is controllable, how is it used and how can it go wrong: Discarded.

Zellic © 2024Back to top ↑