TheDocumentation 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.
ixsDepositLiquidity method builds transaction instructions that deposit tokens into the vault and mint LP tokens to the depositor.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
depositor | PublicKey | The depositor’s wallet public key |
mint | PublicKey | The token mint to deposit. Must match a vault token entry |
tokenAmountIn | bigint | number | Amount of tokens to deposit in native units |
minLpOut | bigint | number | Minimum LP tokens to receive. Set to 0 to accept any amount |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
tokenSrc | PublicKey | Source token account. Defaults to the depositor’s ATA for mint |
entryTokenVault | PublicKey | Vault token escrow. Defaults to the Squads-controlled account defined in the token entry |
tokenLpDst | PublicKey | LP token destination. Defaults to the depositor’s ATA for the LP mint |
tokenProgram | PublicKey | Token program. Defaults to TOKEN_PROGRAM_ID |
extraRemainingAccounts | AccountMeta[] | Additional accounts (e.g., Kamino obligation accounts) |
Returns
Returns aPromise<TransactionInstruction[]> — an array of instructions that deposit tokens into the vault and mint LP tokens.
LP Token Calculation
The amount of LP tokens minted is proportional to the deposit relative to total vault AUM:minLpOut parameter protects against price movements between transaction construction and execution.