PtSpotOracle
Inherits: SpotOracle
Spot Oracle for PT MARKETs
This contract assumes that the SY is pegged 1:1 with the underlying asset of IonPool. This is a major assumption to be aware of since this oracle will return a valuation in SY, which may or may not be the same as the underlying in the IonPool.
State Variables
MARKET
TWAP_DURATION
Functions
constructor
Construct a new PtSpotOracle
instance
Parameters
Name | Type | Description |
---|---|---|
|
| The Pendle Market to get the PT price from |
|
| The duration of the TWAP |
|
| The Loan To Value ratio |
|
| The oracle to get the reserve price from |
getPrice
Gets the price of the collateral asset in ETH.
Overridden by collateral specific spot oracle contracts.
Returns
Name | Type | Description |
---|---|---|
|
| of the asset in ETH. [WAD] |