YieldOraclePendle

Git Source

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

apys

Get the APY for a given collateral

function apys(uint256) external view override returns (uint32);

Errors

InsufficientOracleSlots

error InsufficientOracleSlots(uint256 currentSlots);