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
  • Step by step
  • 1. Find a PrincipalToken
  • 2. Deposit
  1. Guides

Providing Liquidity

PreviousTokenizing YieldNextDeploy PT and Curve Pool

Last updated 1 year ago

When a user tokenizes their yield, they may want access to a liquid form of the principal and yield immediately. To enable this, we use the DEX to ensure a large amount of liquidity is always available to swap in/out of the associated PT.

We're currently building something special for liquidity of Yield Tokens. Stay tuned! 👀

The liquidity on the Curve.finance pools comes from Liquidity Providers, who supply one or both sides of the pool with assets. By doing this, they can earn trading fees each time a swap is made on the Curve pool.

Step by step

1. Find a PrincipalToken

2. Deposit

Alternative: Depositing directly via Curve

See guide for more details.

The easiest and quickest way to supply liquidity is to use our . The Spectra app for instance uses the router to execute all the depositing and liquidity provision in a single transaction.

See for more information on how to build such transactions.

The relevant allowance of the token must be approved for the contract before depositing.

Alternatively, you can deposit directly into the associated Curve pools. However this is more difficult and may take longer as you calculate the optimal amount of IBT and PT to convert and deposit. See the official .

Tokenizing Yield
Router
Routing
Router
Curve documentation here
Curve.finance
An overview of zapping in with an IBT