Assessment reports>Benqi Oracle>Threat Model>setDeviationThreshold

Function: setDeviationThreshold(uint256 newThreshold)

This function sets the global deviation threshold.

Inputs

  • newThreshold

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A new deviation threshold to set the deviation threshold of.

Branches and code coverage

Intended branches

  • Set the deviation threshold.

Negative behavior

  • Revert if the caller is not an owner.

  • Revert if the deviation threshold is zero.

  • Revert if the deviation threshold is greater than the max deviation threshold.

Zellic © 2025Back to top ↑