⬅️ Contracts

ChainlinkOracleWrapper

Chainlink oracle wrapper

Author: eswak

Reads a Chainlink oracle value & wrap it under the standard Fei oracle interface

Mainnet implementations

Name Address
chainlinkBALEthOracle 0x7261D245454Daa070C77B2a26eA192E3a4c8F655
chainlinkCREAMEthOracle 0xDE02522cDc4959117fe839a7326D80F9858f383C
chainlinkDaiUsdOracleWrapper 0x231aDa12E273eDf3fA54CbD90c5C1a73129D5bb9
chainlinkDpiUsdOracleWrapper 0xB594d2bd55Ede471e16b92AE6F7651648DA871c3
chainlinkEthUsdOracleWrapper 0xCd3c40AE1256922BA16C7872229385E20Bc8351e
chainlinkEurUsdOracleWrapper 0xFb3a062236A7E08b572F17bc9Ad2bBc2becB87b1
chainlinkFeiEthOracleWrapper 0x060Be7B51F78DFFd04749332fd306BA1228e7444
chainlinkLUSDOracleWrapper 0xe61d11ec732d556A26fb863B192052BEa03eF8B5
chainlinkRaiEthOracleWrapper 0x3d49573ee6aFCBDe606F8a1c2AA1C498048E7190
chainlinkTribeEthOracleWrapper 0x061118ccabF0c2c62f05a2e3C2bd4379c0C70079

Core, CompositeOracle, CollateralizationOracle, PriceBoundPSM, UniswapPCVDeposit, MintRedeemPausePSM, BalancerPCVDepositWeightedPool, AngleUniswapPCVDeposit, BalancerLBPSwapper

Events

ContractAdminRoleUpdate

event ContractAdminRoleUpdate(bytes32,bytes32)
Params
Param Type Notes
oldContractAdminRole bytes32 indexed
newContractAdminRole bytes32 indexed

CoreUpdate

event CoreUpdate(address,address)
Params
Param Type Notes
oldCore address indexed
newCore address indexed

Paused

event Paused(address)
Params
Param Type Notes
account address

Unpaused

event Unpaused(address)
Params
Param Type Notes
account address

Update

event Update(uint256)
Params
Param Type Notes
_peg uint256

Methods

CONTRACT_ADMIN_ROLE

function CONTRACT_ADMIN_ROLE() view returns(bytes32)

a role used with a subset of governor permissions for this contract only

Returns
Param Type Notes
bytes32

chainlinkOracle

function chainlinkOracle() view returns(address)

the referenced chainlink oracle

Returns
Param Type Notes
address

core

function core() view returns(address)

address of the Core contract referenced

Returns
Param Type Notes
address ICore implementation address

fei

function fei() view returns(address)

address of the Fei contract referenced by Core

Returns
Param Type Notes
address IFei implementation address

feiBalance

function feiBalance() view returns(uint256)

fei balance of contract

Returns
Param Type Notes
uint256 fei amount held

isContractAdmin

function isContractAdmin(address) view returns(bool)

returns whether a given address has the admin role for this contract

Params
Param Type Notes
_admin address
Returns
Param Type Notes
bool

isOutdated

function isOutdated() view returns(bool)

determine if read value is stale

Returns
Param Type Notes
bool true if read value is stale

oracleDecimalsNormalizer

function oracleDecimalsNormalizer() view returns(uint256)
Returns
Param Type Notes
uint256

pause

function pause() nonpayable

set pausable methods to paused

paused

function paused() view returns(bool)

Returns true if the contract is paused, and false otherwise.

Returns
Param Type Notes
bool

read

function read() view returns(tuple,bool)

read the oracle price

Returns
Param Type Notes
tuple oracle price
bool true if price is valid

setContractAdminRole

function setContractAdminRole(bytes32) nonpayable

sets a new admin role for this contract

Params
Param Type Notes
newContractAdminRole bytes32

setCore

function setCore(address) nonpayable

set new Core reference address

Params
Param Type Notes
newCore address the new core address

tribe

function tribe() view returns(address)

address of the Tribe contract referenced by Core

Returns
Param Type Notes
address IERC20 implementation address

tribeBalance

function tribeBalance() view returns(uint256)

tribe balance of contract

Returns
Param Type Notes
uint256 tribe amount held

unpause

function unpause() nonpayable

set pausable methods to unpaused

update

function update() view

updates the oracle price

no-op, Chainlink is updated automatically

⬅️ Contracts