Skip to main content
Instructions for moving capital in and out of a Strategy Vault. For deploying capital into protocols, see Vault Policies.

Instructions

Deposit Liquidity

Deposit a supported token into the vault and receive LP tokens.

Instant Withdrawal

Quote and execute an immediate reserve withdrawal when vault liquidity is available.

Queue Withdrawal

Lock Vault LP tokens and queue a withdrawal request.

Execute Withdrawal

Execute a filled withdrawal request and receive underlying tokens.

Cancel Withdrawal

Cancel a queued withdrawal and reclaim your LP tokens.

Flow

Instant Withdrawal quotes and executes from available vault reserves for a selected output mint. The queued withdrawal flow locks LP tokens, then moves through queue, fill, and execute steps.
Queued withdrawals allow the vault to unwind strategy positions before the depositor receives underlying tokens.

Reading Vault State

import { ExponentVault } from "@exponent-labs/exponent-sdk";

// Load a single vault
const vault = await ExponentVault.load({ connection, address: vaultAddress });

// Read vault financials
const { aumInBase, aumInBaseInPositions, lpBalance } = vault.state.financials;

// Get LP token supply
const lpSupply = await vault.fetchLpTokenSupply();

// Check current instant-withdrawal capacity
const instantCapacity = await vault.fetchInstantWithdrawalCapacity();

// Fetch a specific withdrawal account
const withdrawal = await vault.fetchWithdrawalAccount(withdrawalAddress);