RsEthPtReserveOracle

Git Source

Inherits: ReserveOracle

Reserve Oracle for PT-rsETH

Functions

constructor

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

_getProtocolExchangeRate

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

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