Assessment reports>Benqi Oracle>Threat Model>setUnderlyingPrice

Function: setUnderlyingPrice(IQiToken qiToken, uint256 underlyingPriceMantissa)

This function is used to set the underlying price of a qiToken.

Inputs

  • qiToken

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A token to set the underlying price of.

  • underlyingPriceMantissa

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A price to set the underlying price to.

Branches and code coverage

Intended branches

  • Check if the given qiToken is the qiAvax token.

  • Set the price of the qiToken.

Negative behavior

  • Revert if the caller is not a service admin.

Zellic © 2025Back to top ↑