SwEthReserveOracle

Git Source

Inherits: ReserveOracle

Reserve oracle for swETH.

State Variables

PROTOCOL_FEED

address public immutable PROTOCOL_FEED;

Functions

constructor

Creates a new EthXReserveOracle instance.

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

Parameters

Name
Type
Description

_protocolFeed

address

Data source for the LST provider exchange rate.

_ilkIndex

uint8

of swETH.

_feeds

address[]

List of alternative data sources for the swETH exchange rate.

_quorum

uint8

The amount of alternative data sources to aggregate.

_maxChange

uint256

Maximum percent change between exchange rate updates. [RAY]

_getProtocolExchangeRate

Returns the exchange rate between ETH and swETH.

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

Returns

Name
Type
Description

protocolExchangeRate

uint256

Exchange rate between ETH and swETH.