Assessment reports>Benqi Oracle>Threat Model>getUnderlyingPriceWithTimestamp

Function: getUnderlyingPriceWithTimestamp(IQiToken qiToken)

This function is used to get the underlying price of a qiToken and the time stamp of the price.

Inputs

  • qiToken

    • Control: Fully controlled by the caller.

    • Constraints: None.

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

Branches and code coverage

Intended branches

  • Check if the given qiToken is the qiAvax token.

  • Check if the given qiToken is not the qiAvax token.

  • Get the price of the qiToken from the feed.

Zellic © 2025Back to top ↑