YieldOraclePendle
Inherits: IYieldOracle
Yield Oracle for Pendle Markets
State Variables
MARKET
IPMarketV3 public immutable MARKET;
TWAP_DURATION
uint32 public immutable TWAP_DURATION;
YIELD_CEILING
uint256 public immutable YIELD_CEILING;
Functions
constructor
Construct a new YieldOraclePendle
instance
constructor(IPMarketV3 _market, uint32 _twapDuration, uint256 _yieldCeiling);
Parameters
Name
Type
Description
_market
IPMarketV3
The Pendle Market to get the APY from
_twapDuration
uint32
The duration of the TWAP
_yieldCeiling
uint256
The maximum APY
apys
Get the APY for a given collateral
function apys(uint256) external view override returns (uint32);
Errors
InsufficientOracleSlots
error InsufficientOracleSlots(uint256 currentSlots);