AggregatorV3Interface
. In this case, AggregatorV3Interface
defines that all V3 Aggregators will have the function latestRoundData
. You can see all of the functions that a V3 Aggregator exposes in theAggregatorV3Interface
file on Github.getLatestPrice
uses latestRoundData
to obtain the most recent round of price data. We're interested in the price, so the function returns that.