# Oracles ## TLDR These are the oracles the system uses for the system coin (HAI) and the current 3 collaterals. ### HAI - [Denominated Oracle (HAI / USD)](https://optimistic.etherscan.io/address/0x5A1B8327F3B7584b999628398cDCf9844311A836) **[1 day twap]** `0x5A1B8327F3B7584b999628398cDCf9844311A836` ### WETH - [Delayed Oracle (WETH / USD)](https://optimistic.etherscan.io/address/0x2fC0cb2c5065a79bC2db79e4fbD537b7CaCF6f36) **[1 hour delay]** `0x2fC0cb2c5065a79bC2db79e4fbD537b7CaCF6f36` ### WSTETH - [Delayed Oracle (WSTETH / USD)](https://optimistic.etherscan.io/address/0xB64c0f551C006d932484a6F86Ea7A20D73e4f77C) **[1 hour delay]** `0xB64c0f551C006d932484a6F86Ea7A20D73e4f77C` ### OP - [Delayed Oracle (OP / USD)](https://optimistic.etherscan.io/address/0x519011d32806f324364201c5c98579aec55d9011) **[1 hour delay]** `0x519011d32806f324364201c5c98579aec55d9011` ## Detailed Overview Note: Launch with harded coded oracle and then use proposal to deploy real one / change system to use it. ### Launch Oracle [Hardcoded Oracle (HAI)](https://optimistic.etherscan.io/address/0x8c212bCaE328669c8b045D467CB78b88e0BE0D39) -`0x8c212bCaE328669c8b045D467CB78b88e0BE0D39` ```solidity! systemCoinOracle = new HardcodedOracle('HAI / USD', HAI_USD_INITIAL_PRICE); // 1 HAI = 1 USD ``` ### Production Oracle This oracle will only become active when we turn the PID controller on. [Denominated Oracle (HAI / USD) ](https://optimistic.etherscan.io/address/0x5A1B8327F3B7584b999628398cDCf9844311A836) -`0x5A1B8327F3B7584b999628398cDCf9844311A836` The dominated oracle sits in front of 2 price sources which it combines to create a `HAI / USD` price. 1. [Chainlink Relayer (WETH / USD)](https://optimistic.etherscan.io/address/0xF808Bb8264459F5e04a9870D4473b36229126943) **[spot price]** - `0xF808Bb8264459F5e04a9870D4473b36229126943` 2. [Uni V3 Relayer (HAI / WETH)](https://optimistic.etherscan.io/address/0x895F5CBa9541f2054Bbc5Fd2aE1ab9DD0776e148) **[1 day twap]** - `0x895F5CBa9541f2054Bbc5Fd2aE1ab9DD0776e148` ```flow st=>start: HAI System op=>operation: Denominated Oracle (HAI / USD):>https://optimistic.etherscan.io/address/0x5A1B8327F3B7584b999628398cDCf9844311A836 cond=>condition: Yes or No? para=>parallel: Combine op2=>operation: Chainlink Relayer (WETH / USD):>https://optimistic.etherscan.io/address/0xF808Bb8264459F5e04a9870D4473b36229126943 spot op3=>operation: Uni V3 Relayer (HAI / WETH):>https://optimistic.etherscan.io/address/0x895F5CBa9541f2054Bbc5Fd2aE1ab9DD0776e148 op4=>operation: spot op5=>operation: 1day twap e=>end st->op->para para(path1@an1, left)->op4->op2 para(path2@an2, right)->op5->op3 ``` ## Collaterals ### WETH [Delayed Oracle (WETH / USD)](https://optimistic.etherscan.io/address/0x2fC0cb2c5065a79bC2db79e4fbD537b7CaCF6f36) **[1 hour delay]** -`0x2fC0cb2c5065a79bC2db79e4fbD537b7CaCF6f36` - The `Delayed Oracle (WETH / USD)` sits in front of the following `priceSource` - [Chainlink Relayer (WETH / USD)](https://optimistic.etherscan.io/address/0xf808bb8264459f5e04a9870d4473b36229126943) - `0xF808Bb8264459F5e04a9870D4473b36229126943` - The `Chainlink Relayer (WETH / USD)` `priceSource` sits in front of the following `priceFeed` - [Chainlink Aggregator (WETH / USD)]( https://optimistic.etherscan.io/address/0x13e3Ee699D1909E989722E753853AE30b17e08c5#readContract) - `0x13e3Ee699D1909E989722E753853AE30b17e08c5` ```flow st=>start: HAI System e=>end: End op=>operation: Delayed Oracle (WETH / USD) [1 hour delay]:>https://optimistic.etherscan.io/address/0x2fC0cb2c5065a79bC2db79e4fbD537b7CaCF6f36 op2=>operation: Chainlink Relayer (WETH / USD):>https://optimistic.etherscan.io/address/0xf808bb8264459f5e04a9870d4473b36229126943 op3=>operation: Chainlink Aggregator (WETH / USD):>https://optimistic.etherscan.io/address/0x13e3Ee699D1909E989722E753853AE30b17e08c5#readContract st->op->op2->op3->end ``` ### WSTETH [Delayed Oracle (WSTETH / USD)](https://optimistic.etherscan.io/address/0xB64c0f551C006d932484a6F86Ea7A20D73e4f77C) **[1 hour delay]** - `0xB64c0f551C006d932484a6F86Ea7A20D73e4f77C` - The `Delayed Oracle (WSTETH / USD)` sits in front of the following `priceSource` - [Denominated Oracle (WSTETH / WETH) * (WETH / USD)](https://optimistic.etherscan.io/address/0xD719901C69b5241812a81238aa4d675301062357) - `0xD719901C69b5241812a81238aa4d675301062357` - The `[Denominated Oracle (WSTETH / WETH) * (WETH / USD)]` `priceSource` sits in front of the following 2 `priceSources` 1. [Chainlink Relayer (WSTETH / WETH)](https://optimistic.etherscan.io/address/0x578a105a0e7b6ab5d25F5B4A73E33FB1591504F7) - `0x578a105a0e7b6ab5d25F5B4A73E33FB1591504F7` - `The Chainlink Relayer (WETH / USD)` sits in front of the following `priceFeed` - [Chainlink Aggregator (WETH / USD)]( https://optimistic.etherscan.io/address/0x524299Ab0987a7c4B3c8022a35669DdcdC715a10) - `0x524299Ab0987a7c4B3c8022a35669DdcdC715a10` 2. [Chainlink Relayer (WETH / USD)](https://optimistic.etherscan.io/address/0xF808Bb8264459F5e04a9870D4473b36229126943) - `0xF808Bb8264459F5e04a9870D4473b36229126943` - `The Chainlink Relayer (WETH / USD)` sits in front of the following `priceFeed` - [Chainlink Aggregator (ETH / USD)]( https://optimistic.etherscan.io/address/0x13e3Ee699D1909E989722E753853AE30b17e08c5) - `0x13e3Ee699D1909E989722E753853AE30b17e08c5` ```flow st=>start: HAI System op6=>operation: Delayed Oracle (WSTETH / USD) [1 hour delay]:>https://optimistic.etherscan.io/address/0x2e97fF3AB68D806324c10794f8a75B887C375312 op=>operation: Denominated Oracle (WSTETH / WETH) * (WETH / USD):>https://optimistic.etherscan.io/address/0x2e97fF3AB68D806324c10794f8a75B887C375312 cond=>condition: Yes or No? para=>parallel: Combine op2=>operation: Chainlink Relayer (WSTETH / WETH):>https://optimistic.etherscan.io/address/0x39e07fDbA0E80c32F1f17B96635e30949928B376 spot op3=>operation: Chainlink Relayer (WETH / USD):>https://optimistic.etherscan.io/address/0xF808Bb8264459F5e04a9870D4473b36229126943 op4=>operation: spot op5=>operation: spot op7=>operation: 123 op8=>operation: 234 e=>end st->op6->op->para para(path1@an1, left)->op2->op7 para(path2@an2, right)->op3->op8 ``` ### OP [Delayed Oracle (OP / USD)](https://optimistic.etherscan.io/address/0x519011d32806f324364201c5c98579aec55d9011) **[1 hour delay]** -`0x519011d32806f324364201c5c98579aec55d9011` - The `Delayed Oracle (OP / USD)` sits in front of the following `priceSource` - [Chainlink Relayer (OP / USD)](https://optimistic.etherscan.io/address/0xc99537Dc7F657797DFBfDE81df21aEB901e6932D) - `0xc99537Dc7F657797DFBfDE81df21aEB901e6932D` - The `Chainlink Relayer (OP / USD)` `priceSource` sits in front of the following `priceFeed` - [Chainlink Aggregator (OP / USD)]( https://optimistic.etherscan.io/address/0x0D276FC14719f9292D5C1eA2198673d1f4269246) - `0x0D276FC14719f9292D5C1eA2198673d1f4269246` ```flow st=>start: HAI System e=>end: End op=>operation: Delayed Oracle (OP / USD) [1 hour delay]:>https://optimistic.etherscan.io/address/0x519011d32806f324364201c5c98579aec55d9011 op2=>operation: Chainlink Relayer (OP / USD):>https://optimistic.etherscan.io/address/0xc99537Dc7F657797DFBfDE81df21aEB901e6932D op3=>operation: Chainlink Aggregator (OP / USD):>https://optimistic.etherscan.io/address/0x0D276FC14719f9292D5C1eA2198673d1f4269246 st->op->op2->op3->end ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up