Oracles
Last updated
Last updated
Mento Oracles consist of two technical parts: An and . In the following pages, you will learn about these two components as well as about the research behind choosing price sources for the oracles to report.
For CELO/cStable
rate feeds, the unique identifier is the address of the stable token. Since this doesn't work for more than one pair including the same stable token, which was not initially planned, a new formula is used to create unique rate feed identifiers for rate feeds other than CELO/cStable
.
These identifiers can be derived using the following formula:
For example, USDCUSD
inserted gives the following formula:
Each oracle rate, internally called rate feed, is uniquely identified by a rateFeedID
. It is used when adding oracle rates to the by calling the function in a Celo governance proposal:
An example can be found in this .