Skip to main content

This section covers the math an integration needs before routing users into a tranche or valuing LP tokens. For the underlying concepts, see LP Share Pricing and Fee Structure.

Pages

Units and Fees

Raw token units, fixed-point Number values, transfer fees, and market-update fee formulas.

LP Pricing

Effective-NAV LP price, position NAV, and SDK helpers for Senior and Junior LP tokens.

Deposit Previews

Deposit value allocation, gross LP output, deposit fee shares, net LP output, and example values.

Withdrawal Previews

Withdrawal fee shares, asset claims, Senior self-liquidation bonus, and withdrawal example values.

Integration Flow

  1. Normalize inputs for display, but keep transaction amounts in raw token units.
  2. Reload market state before pricing or building a transaction.
    1. Price LP tokens from effective NAV and the selected tranche supply.
    1. Apply the selected deposit or withdrawal fee in LP shares.
    1. Set minLpOut, minAmountOut, or minBaseOut according to the route.
For SDK calls that read the same fields, see SDK Preflight.