Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Deposit base assets into a Senior or Junior tranche
ixWrapperDeposit
import { Transaction, sendAndConfirmTransaction } from "@solana/web3.js"; import { TrancheSide } from "@exponent-labs/exponent-sdk/client/tranching"; const { ixs, setupIxs } = await market.ixWrapperDeposit({ user: wallet.publicKey, trancheSide: TrancheSide.Senior, amountBase: 1_000_000_000n, // raw base-token units minLpOut: 0n, // raw Senior LP units; set above 0 for output protection }); const tx = new Transaction().add(...setupIxs, ...ixs); const signature = await sendAndConfirmTransaction(connection, tx, [wallet]);
user
PublicKey
trancheSide
TrancheSide
TrancheSide.Senior
TrancheSide.Junior
amountBase
bigint
minLpOut
0n
setupPayer
tokenBaseSrc
tokenSySrc
tokenLpDst
tokenProgram
ixs
setupIxs