Assessment reports>Benqi Oracle>Threat Model>getFeedPrice

Function: getFeedPrice(IAggregatorV2V3Interface feed)

This function safely gets a normalized price from a feed.

Inputs

  • feed

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A price feed to get the price of.

Branches and code coverage

Intended branches

  • Check if the feed is available.

  • Check if the feed price is greater than zero.

  • Normalize the price.

Zellic © 2025Back to top ↑