WeEthPtReserveOracle

Git Source

Inherits: ReserveOracle

Reserve Oracle for PT-weETH

Functions

constructor

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

_getProtocolExchangeRate

1 PT will be worth 1 eETH at maturity. Since we want to value the PT at maturity, we need to convert 1 eETH of value into weETH terms.

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