Deterministic Oracles Deployment
Overview
Deployment of deterministic oracles, both according to the linear discount model and the zero-coupon bond model, is done through the SpectraPriceOracleFactory
.
Deployment
One deploys a deterministic oracle through the method
The _discountModel
address corresponds to the address of either the LinearDiscountModel
, LinearAPRModel
or ZeroCouponDiscountModel
, depending on the pricing model one wants to use.
The initialImpliedAPY
field is the implied APY according to which we want to discount the PT over the term. The initialImpliedAPY
field is in 18 decimals precision, 10 ** 18
representing a 100%
implied APY.
The owner of the oracle contract can change the discount model used in the oracle by calling setDiscountModel()
.
Example
For example, to deploy an oracle with a 30%
implied APY over the term, one does
Last updated