| hide_table_of_contents | true |
|---|
In Pendle system, PendleMarket contracts fully on-chain. Please refer to the StandardizedYield doc for more details of SY & asset
Pendle's oracle implementation is inspired from the idea of UniswapV3 Oracle (see here) with a slight difference in how we define the cumulative rate. In short, our oracle stores the cumulative logarithm of implied APY (the interest rate implied by
In a way, the Pendle AMM contract has a built-in oracle of interest rate, which can be used to derive
Our oracle storage is in the following form:
struct Observation {
// the block timestamp of the observation
uint32 blockTimestamp;
// the tick logarithm accumulator, i.e., ln(impliedRate) * time elapsed since the pool was first initialized
uint216 lnImpliedRateCumulative;
// whether or not the observation is initialized
bool initialized;
}The geometric mean price of