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
  3. Deterministic Oracles

Linear Discount Model

PreviousLinear APR modelNextZero Coupon Bond Model

Last updated 2 days ago

The linear discount model is a pricing model for the Principal Token (PT) that assumes the PT discount evolves linearly in time. At start time, the model prices the PT as its par value discounted by the non-compounded instantaneous rate rrr over the term. At maturity, the model prices the PT at its par value. The model linearly interpolates between those two points. More specifically

P(t,T)=α(t)(1−11+r(T−t))tT+α(t)1+r(T−t)P(t,T) = \alpha(t) (1 - \frac{1}{1 + r(T-t)})\frac{t}{T} + \frac{\alpha(t)}{1 + r(T-t)} P(t,T)=α(t)(1−1+r(T−t)1​)Tt​+1+r(T−t)α(t)​

In this equation, α(t)\alpha(t)α(t) represents the ptRate at time ttt, i.e the par value of the PT, TTT is the maturity timestamp, while ttt is the current timestamp.