Function: getPriceAndTimestamp(IAggregatorV2V3Interface feed, IQiToken qiToken)
This function is used to get the price and time stamp of a qiToken.
Inputs
feedControl: Fully controlled by the caller.
Constraints: None.
Impact: A feed to get the price and time stamp of.
qiTokenControl: Fully controlled by the caller.
Constraints: None.
Impact: A token to get the price and time stamp of.
Branches and code coverage
Intended branches
Check if the given
qiTokenis theqiAvaxtoken.Get the price of the
qiTokenfrom the feed.
Negative behavior
Revert if the answer from the
lastestRoundDatais not greater than zero.