Balmy
Oracles
Oracles
  • Introduction
  • Architecture
    • Token Price Oracle
    • Abstract Base Oracle
    • Oracles
      • Identity Oracle
      • Chainlink
      • Uniswap V3
      • Oracle Aggregator
      • Transformer Oracle
  • Tech guides
    • Interacting with the oracles
    • Smart Contract Registry
    • Github
Powered by GitBook
On this page

Was this helpful?

  1. Architecture

Abstract Base Oracle

PreviousToken Price OracleNextOracles

Last updated 2 years ago

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 .

SimpleOracle
BaseOracle
TokenPriceOracle
BaseOracle
ERC165
Multicall
SimpleOracle
BaseOracle
SimpleOracle