Skip to main content
The ixWrapperDeposit instruction deposits base assets into a tranching market. The wrapper mints SY from the base asset, deposits SY into the selected tranche, and mints tranche LP shares.

Usage

Parameters

Returns

Returns an object with:
  • ixs - Instructions that perform the SY mint, tranche deposit, and flavor-specific pre/post steps
  • setupIxs - Associated token account setup instructions for base, SY, and LP token accounts
Always include setupIxs before ixs in the transaction. The setup instructions are idempotent.
Deposits update market NAV before minting LP shares. Use minLpOut if the transaction depends on a specific output amount.