Oraclecontracts allow the protocol to get access to the price of a collateral with respect to a stablecoin. There is one
Oraclecontract per collateral/stablecoin pair. As such different
VaultManagercontract may use a similar oracle contract.
readfunction (all oracle contracts implement this interface).
WStETH, the protocol for instance needs to call, besides Chainlink feeds, the
StETHcontract to get the
USDC-EURfeed, only the Chainlink
USD/EURfeed may by used, while for the
ETH-EURfeed, the protocol will use Chainlink's
BaseOracleChainlinkMulticontracts have two parameters:
treasury: Reference to a treasury contract for access control purposes (to change the stale period)
stalePeriod: Represents the maximum amount of time (in seconds) between each Chainlink update before the price feed is considered stale
readfunction may contain several hard coded data like the addresses involved in the Chainlink circuit, or the decimals of Chainlink feeds.
changeStalePeriod: For a guardian to change the stale period
setTreasury: To notify the oracle contract of a
Treasurychange in case of