PendleOracle
Gets the exchange rate between Pendle and the underlying asset for the Pendle Market.
constructor
constructor(string infoName_, contract IPendlePYLpOracle pendleOracle_, contract IPendleMarketV3 pendleMarket_, uint32 twapDuration_, uint256 maxExpectedBorrowRate_, uint256 minYieldRate_, uint256 maxYieldRate_, uint8 debtTokenDecimals_) public
getExchangeRateOperate
function getExchangeRateOperate() public view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for operates
getExchangeRateLiquidate
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for liquidations
getExchangeRate
function getExchangeRate() external view returns (uint256 exchangeRate_)
Deprecated. Use getExchangeRateOperate()
and getExchangeRateLiquidate()
instead. Only implemented for
backwards compatibility.