Skip to main content

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.

Read Functions

This section covers the read functions available in the Exponent CLMM SDK. These functions allow you to query pool state without submitting transactions.

Market State

Reading Market State

Read core market data such as token mints, balances, exchange rate state, and other onchain CLMM parameters.

Position Management Functions

Get PT and SY on Withdraw

Preview how much PT and SY a position would return on withdrawal, including support for partial LP withdrawals.

Get User LP Positions

Fetch all LP positions owned by a wallet in a given market, including balances, tick ranges, and accrued fees.

Liquidity Unit Price in Asset

Convert CLMM liquidity into an asset-denominated value to help price positions and evaluate capital deployment.

Fee Calculation Functions

Calculate Claimable Fees

Estimate the PT and SY fees currently claimable by an LP position based on onchain fee growth and position state.

Compute Fee Inside for Range

Compute the fee growth that occurred within a specific tick range for more precise LP accounting and analytics.

Calculate Historical Fee APY

Estimate historical fee APY using past fee generation and market activity over time.

Calculate Global Fee Rate

Read or derive the market-wide fee rate used in CLMM fee calculations and analytics.