Liquidity & Swap
Add Liquidity (ALP)
import { addLiquidity } from 'adrena-sdk/core';
import { createKitClient } from 'adrena-sdk/clients';
const { wallet, rpc } = await createKitClient();
const result = await addLiquidity({
wallet,
rpc,
collateralToken: 'USDC',
amountIn: BigInt(100_000_000), // 100 USDC (6 decimals)
minLpAmountOut: BigInt(0), // minimum ALP to receive; set >0 for slippage protection
});await addLiquidity({
wallet,
rpc,
collateralToken: 'USDC',
amountIn: BigInt(100_000_000),
minLpAmountOut: BigInt(0),
poolName: 'commodities-pool',
});Remove Liquidity (ALP)
Swap
Token Decimal Reference
Token
Decimals
Formula
Slippage Protection
Last updated
Was this helpful?
