Assessment reports>Staking>Threat Model>setBonusMultiplier

Function: setBonusMultiplier(uint256 _bonusMultiplierBasisPoints)

Sets the bonus multiplier basis points.

Inputs

  • _bonusMultiplierBasisPoints

    • Control: Fully controlled by the owner.

    • Constraints: N/A.

    • Impact: Sets the bonus multiplier basis points.

Branches and code coverage (including function calls)

Intended branches

  • Sets the bonus multiplier basis points.

  • Calls IRewardTracker.updateRewards().

  • Should be checked that it fits within some range. Currently not checked.

Negative behavior

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

  • Should revert if the last distribution time is invalid.

Zellic © 2024Back to top ↑