Assessment reports>Alkimiya>Threat Model>setMaxBountyFraction

Function: setMaxBountyFraction(uint256 newMaxFraction)

This function is used to set the maximum fraction of collateral that can be paid out as a bounty.

Inputs

  • newMaxFraction

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the maximum bounty fraction.

Branches and code coverage

Intended branches

  • Updates sMaxBountyFraction with newMaxFraction.

Negative behavior

  • Reverts if the caller is not the owner.

Zellic © 2024Back to top ↑