# Backup oracles (Chainlink + Tellor)

**URL:** <https://community.reflexer.finance/t/backup-oracles-chainlink-tellor/371>\
**Category:** General Discussion\
**Created:** [September 22, 2022, 11:50pm UTC](https://community.reflexer.finance/t/backup-oracles-chainlink-tellor/371 "2022-09-22T23:50:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabiohild](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.reflexer.finance/fabiohild/32/105_2.png) [@fabiohild](https://community.reflexer.finance/u/fabiohild)\
**Post date:** [September 22, 2022, 11:50pm UTC](https://community.reflexer.finance/t/backup-oracles-chainlink-tellor/371/1 "2022-09-22T23:50:49Z")

</div>

# Backup Oracles

Following up on the discussion started on Discord, this proposal will update RAI’s ETH Oracle with a new implementation.

Currently the system relies on Chainlink for ETH prices. All contracts that rely on the ETH oracle have at least this parameter still governed.

The new implementation aims to retain the ability to quickly swap oracles in case of a problem (~5 day governance process), but mitigates the introduction of a malicious implementation, enforcing a delay to entrust it and therefore allowing more time for the community to notice and cancel the change before it occurs.

Prices will now be reported through an overlay. It includes a list of trusted implementations and governance can swap in between them at the same speed an oracle swap can be done right now.

For new implementations to be trusted, an initial governance vote is required. A 60 day delay is then enforced before the implementation is included in the trusted implementation list. During the delay, governance can cancel the process through a vote, and after the delay anyone can call a function that executes the change. In order for the system to use the new implementation, another vote is required.

Summing up, swaps between trusted oracles can be done through a single vote, new oracles can be included with a 60 day delay.

For a start we will have two trusted implementations, the currently used Chainlink oracle (that will keep on being the active system oracle) and a Tellor oracle implementation.

## New Contracts

**Overlay:** 0xBf26309B0BA639ABE651dd1e1042Eb3C57c3e100  
**Chainlink:** 0xE2e1Cf7C3A3959157A9b64cAF9675114396d451c  
**Tellor:** 0x2c88408E036B7d0B015B92862c9D93197C72775C

The contracts above are setup fully, with the Chainlink and Tellor contracts fully ungoverned, and the overlay owned only by GEB\_PAUSE\_PROXY (governance timelock).

Both the Tellor oracle and the overlay implementations were audited by Solidified ([report](https://github.com/reflexer-labs/geb-audits/blob/master/solidified/backup-oracle/Audit%20Report%20-%20RAI%20Backup%20Oracles.pdf)).

## Contracts affected

All contracts that rely on the ETH price feed:

- FEED\_SECURITY\_MODULE\_ETH
- GEB\_DEBT\_FLOOR\_ADJUSTER
- GEB\_FIXED\_REWARDS\_ADJUSTER
- GEB\_MINMAX\_REWARDS\_ADJUSTER

From the above, GEB\_DEBT\_FLOOR\_ADJUSTER is partially ungoverned, and the rest are still fully governed.

In this proposal we change the ETH oracle on all of them to the new overlay.

Along this change I propose we fully ungovern the OSM (FEED\_SECURITY\_MODULE\_ETH), using the opportunity to further ungovern the system.

The remainder periphery adjuster contracts still have several parameters that could change, so they can be ungoverned at a later date.

## RAI Oracle

The proposal will not touch the RAI oracle nor the contracts that use it. Tellor does not provide a RAI feed at the moment, so setting it up is needed before the change. Additionally, the only core contract that relies on it is the PID Controller, still fully governed. Before ungoverning it a similar overlay should be put in place.
