Abstract Base Oracle
Last updated
Was this helpful?
Last updated
Was this helpful?
and are abstract contracts that will standardize and extend some useful features to all price providers while inheriting our basic interface .
Among the features that implement are:
Implementing : Declares support of contract interfaces (such as ITokenPriceOracle, Multicall), which can then be queried by others.
Adding support: Provides a function to batch together multiple calls in a single external call, allowing multiple quotes for multiple pairs.
inherits all features while also standardizing the implementation of addOrModifySupportForPair
and addSupportForPairIfNeeded
functions by defining and re-using the abstract internal function _addOrModifySupportForPair
. This internal function should be defined by whomever inherits .