Spectra Developer Docs
  • Developers Documentation
  • Getting Started
  • Guides
    • Tokenizing Yield
    • Providing Liquidity
    • Deploy PT and Curve Pool
    • Routing
    • IBT Additional Rewards
    • Locking APW for veAPW
    • Voting and Earning Rewards
  • Technical Reference
    • Deployed Contracts
    • Contract Functions
      • Principal Token
      • Yield Token
      • Registry
      • RateOracle
      • Factory
      • Access Manager
      • RouterUtil
      • Router
      • GovernanceRegistry
      • Voter
      • VotingReward
        • BribeVotingReward
        • FeesVotingReward
      • FeeDistributor
      • Spectra4626Wrapper
    • Yield Calculations
    • Spectra's Automated Market Makers
      • Rate Adjusted StableSwap pools
  • Glossary
  • INTEGRATION REFERENCE
    • Spectra Oracles
      • TWAP Oracles
      • Deterministic Oracles
        • Linear APR model
        • Linear Discount Model
        • Zero Coupon Bond Model
        • Comparison
      • Oracle Deployment
        • Deterministic Oracles Deployment
        • TWAP Oracles Deployment
Powered by GitBook
On this page
  1. INTEGRATION REFERENCE
  2. Spectra Oracles

Deterministic Oracles

Spectra offers semi-deterministic pricing models for the Principal Token (PT). Those oracles match the redemption value of the PT at maturity, that is one unit of underlying adjusted by the ptRate .

We implement various discounting models, whose logic we explain in the subsequent pages.

To fetch the latest PT price in terms of underlying, one queries the latestRoundData() method from the SpectraPriceOracle contract. Dependent on the discounting model chosen at construction, this will either return the PT price in underlying discounted according to the linear discount model or according to the zero-coupon bond model.

PreviousTWAP OraclesNextLinear APR model

Last updated 25 days ago