Assessment reports>Benqi Oracle>Threat Model>setDirectPrice

Function: setDirectPrice(address asset, uint256 price)

This function is used to set the price of an asset.

Inputs

  • asset

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: An asset to set the price of.

  • price

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A price to set the price to.

Branches and code coverage

Intended branches

  • Set the price of the asset.

Negative behavior

  • Revert if the caller is not a service admin.

Zellic © 2025Back to top ↑