IOracleRegistry is an aggregator of Chainlink price feeds used to price tokens in a reference currency (e.g., USD). It supports two methods of price derivation:
- Direct Feed: If a direct feed exists between the base token and the reference currency, it is used.
- Combined Feeds: If no direct feed exists, the registry can combine two feeds (e.g., Token B -> Intermediate Token and Intermediate Token -> Reference Currency) to derive the price.
To calculate the price of Token A in terms of Token B, the registry determines the individual prices of both tokens in the reference currency and computes the relative price.