Documentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
MarketThree Instructions
These are the instruction builders provided by theMarketThree class. They handle account resolution, address lookup tables, base token conversion, and CPI routing automatically.
Setup
All instructions are methods on theMarketThree class. See the CLMM SDK Quickstart for installation and full setup.
Instructions
Buy PT
Buy PT using base assets through the wrapper flow, which handles base-to-SY conversion and market routing automatically.
Sell PT
Sell PT back into base assets, with the wrapper handling the SY redemption flow and required account setup.
Buy YT
Buy YT using the wrapper flow, which performs the required strip and flash-swap routing in a single transaction.
Sell YT
Sell YT back into base assets through the wrapper flow, including merge and flash-swap routing under the hood.
Provide Liquidity
Provide liquidity from base assets into an APY range, with wrapper logic handling token conversion, stripping, and LP position setup.
Withdraw Liquidity to Base
Withdraw an LP position back into base assets, converting the underlying PT and SY balances into a single base output.
Provide Liquidity Classic
Provide liquidity using the classic flow when you already manage the required position and token inputs directly.
Withdraw Liquidity Classic
Withdraw liquidity using the classic LP flow, without converting the output back into base assets automatically.
Deposit Liquidity (PT + SY)
Add liquidity directly with PT and SY into a chosen tick range, without using the higher-level base-asset wrapper flow.
Withdraw Liquidity (PT + SY)
Remove liquidity directly into PT and SY from an existing LP position.