EzEthWstEthReserveOracle

Git Source

Inherits: ReserveOracle

Reserve Oracle for ezETH

Functions

constructor

Creates a new ezEthWstEthReserveOracle instance. Provides the amount of wstETH equal to one ezETH. wstETH / ezETH = ETH / ezETH * wstETH / ETH.

The value of ezETH denominated in wstETH by the provider.

constructor(
    uint8 _ilkIndex,
    address[] memory _feeds,
    uint8 _quorum,
    uint256 _maxChange
)
    ReserveOracle(_ilkIndex, _feeds, _quorum, _maxChange);

Parameters

NameTypeDescription

_ilkIndex

uint8

_feeds

address[]

List of alternative data sources for the ezETH exchange rate.

_quorum

uint8

The amount of alternative data sources to aggregate.

_maxChange

uint256

Maximum percent change between exchange rate updates. [RAY]

_getProtocolExchangeRate

function _getProtocolExchangeRate() internal view override returns (uint256);