SortedOracles stores and maintains the state of oracle reports. Oracle clients insert their rates into a sorted linked list and the contract checks newly inserted rates against the on-chain circuit breaker BreakerBox.sol. If valid, the rate can be used by the protocol to price swaps, otherwise, trading will be halted.
addOracle(address token, address oracleAddress)
CELO/cStablerate 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
These identifiers can be derived using the following formula:
USDCUSDinserted gives the following formula:
// == 0xA1A8003936862E7a15092A91898D69fa8bCE290c