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
- Normalize inputs for display, but keep transaction amounts in raw token units.
- Reload market state before pricing or building a transaction.
-
- Price LP tokens from effective NAV and the selected tranche supply.
-
- Apply the selected deposit or withdrawal fee in LP shares.
-
- Set
minLpOut,minAmountOut, orminBaseOutaccording to the route.
- Set