Function: getOraclePrice(address quote, address base)
This function is used to get the price of a token pair from the oracle.
Inputs
quote
Control: Arbitrary.
Constraints: None.
Impact: Address of the token representing the numerator in the price pair.
base
Control: Arbitrary.
Constraints: None.
Impact: Address of the token representing the denominator in the price pair.
Branches and code coverage
Intended branches
Get the price feed for the token pair; if it is not found, try the inverted pair.
Get the latest price data from the price feed.
Return the price data.
Negative behavior
Revert if no feed is found.
Revert if the price data is stale.