BTB
/

Meteora DAMM V1

Dexswebsite
Meteora's legacy Dynamic AMM (DAMM v1) on Solana: constant-product, stable and LST/depeg pools whose reserves sit in Meteora Dynamic Vaults. An agent can swap, add/remove liquidity, create permissionless pools and lock LP via the `amm` program, most easily through @meteora-ag/dynamic-amm-sdk or by routing swaps through Jupiter.

What you can do

swapSwap on a DAMM v1 poolSimplest: route through Jupiter (Meteora's own UI swaps via Jupiter Terminal), which includes Meteora pools. Direct: const pool = await AmmImpl.create(connection, poolAddress); const q = pool.getSwapQuote(inMint, inAmount, slippagePct); const tx = await pool.swap(owner, inMint, inAmount, q.minSwapOutAmount); sign and send.
find-poolFind DAMM v1 pools for a tokenGET https://damm-api.meteora.ag/pools/search?include_token_mints=<mint> or AmmImpl.searchPoolsByToken(connection, mint)
add-liquidityDeposit into a poolpool.getDepositQuote(aIn, bIn, true, slippage) -> pool.deposit(owner, q.tokenAInAmount, q.tokenBInAmount, q.minPoolTokenAmountOut) (program add_balance_liquidity)
remove-liquidityWithdraw from a poolpool.getWithdrawQuote(lpAmount, slippage) -> pool.withdraw(owner, lpAmount, q.minTokenAOutAmount, q.minTokenBOutAmount) (program remove_balance_liquidity)
create-poolCreate a permissionless poolAmmImpl.createPermissionlessPool(...) with an allowed fee tier, or createPermissionlessConstantProductPoolWithConfig2(...) with a published config key (see https://docs.meteora.ag/developer-guides/damm-v1/pool-fee-configs). Meteora recommends DAMM v2 for new launches.
lock-lpLock LP and keep earning feespool.lockLiquidity(owner, amount) (create_lock_escrow + lock); claim with pool.claimLockFee2(owner, maxAmount, payer, receiver)
Legacy product: Meteora describes DAMM v1 as legacy and recommends DAMM v2 for new pools; existing pools keep working.
Permissionless pool creation: anyone can create pools for any mint, including scam/copycat tokens and duplicate pools; always verify mints (Meteora's Staying Safe guide points to Rugcheck, JupShield and Jupiter Organic Score).
Programs are upgradeable (BPFLoaderUpgradeable) by Meteora. Admin-only instructions can disable pools (balanced withdrawals still allowed), set pool fees and partner settings, create/close configs and update launch activation points; operator accounts can withdraw/zap protocol fees.
Pool reserves are held in Dynamic Vaults that lend idle liquidity to external Solana lending strategies (managed by Meteora's off-chain Hermes keeper), adding strategy/smart-contract risk of those protocols.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
DAMM v1 / Dynamic AMM (`amm` program)exchange on solanaEo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB
write swap(in_amount: u64, minimum_out_amount: u64)
Exact-in swap A->B or B->A on one pool. Amounts in base units of the mints. minimum_out_amount is the slippage guard (SDK: pool.getSwapQuote(inMint, inAmount, slippagePct).minSwapOutAmount, then pool.swap(owner, inMint, inAmount, minOut, referralOwner?)). Input is deposited into one Dynamic Vault and output withdrawn from the other, so vault accounts are required. Stable LST/depeg pools need extra depeg remaining accounts; an optional host-fee (referral) token account receives 20% of the protocol fee. Fee numerators use FEE_DENOMINATOR = 100_000 (default constant-product trade fee 250 = 0.25%, protocol share 20% of the trade fee). Launch pools reject swaps before their activation point. No deadline argument: rely on blockhash expiry.
write add_balance_liquidity(pool_token_amount: u64, maximum_token_a_amount: u64, maximum_token_b_amount: u64)
Mint exactly pool_token_amount LP spending at most the given token A/B amounts. Normal path for constant-product pools. SDK: pool.getDepositQuote(aIn, bIn, balance=true, slippage) then pool.deposit(owner, aIn, bIn, poolTokenAmount).
write add_imbalance_liquidity(minimum_pool_token_amount: u64, token_a_amount: u64, token_b_amount: u64)
Deposit arbitrary A/B amounts for at least minimum_pool_token_amount LP. Stable pools only.
write remove_balance_liquidity(pool_token_amount: u64, minimum_a_token_out: u64, minimum_b_token_out: u64)
Burn LP and withdraw A and B proportionally with minimum-out slippage guards. Still works when the pool is disabled. The LP token account must be owned by the signing user (SPL delegates cannot burn). SDK: pool.getWithdrawQuote(lpAmount, slippage) then pool.withdraw(owner, lpAmount, aOut, bOut).
write remove_liquidity_single_side(pool_token_amount: u64, minimum_out_amount: u64)
Burn LP and withdraw a single token. Stable pools only (SDK: getWithdrawQuote(lpAmount, slippage, tokenMint)).
write initialize_permissionless_pool_with_fee_tier(curve_type: CurveType, trade_fee_bps: u64, token_a_amount: u64, token_b_amount: u64)
Create a permissionless pool (pool PDA from curve type, sorted mints and fee tier). Allowed trade_fee_bps: constant product [25, 100, 400, 600], stable [1, 4, 10, 100]. Initial amounts set the price; creator receives LP. Payer funds rent in SOL. SDK: AmmImpl.createPermissionlessPool(...).
write initialize_permissionless_pool(curve_type: CurveType, token_a_amount: u64, token_b_amount: u64)
Create a permissionless pool with the curve's default fee.
write initialize_permissionless_constant_product_pool_with_config2(token_a_amount: u64, token_b_amount: u64, activation_point: Option<u64>)
Create a config-based constant-product pool (PDA from sorted mints + config key) inheriting fees/activation from a published config; private configs require the config's pool_creator_authority to sign. SDK: AmmImpl.createPermissionlessConstantProductPoolWithConfig2(...).
write initialize_customizable_permissionless_constant_product_pool(token_a_amount: u64, token_b_amount: u64, params: CustomizableParams)
Create a customizable launch pool (trade fee 0.25%-15%, activation settings) without a config PDA.
write create_lock_escrow()
Create the lock-escrow PDA for (pool, owner) before locking LP.
write lock(max_amount: u64)
Permanently lock LP tokens into the owner's escrow; locked LP keeps earning fees. Irreversible. SDK: pool.lockLiquidity(owner, amount).
write claim_fee(max_amount: u64)
Claim token A/B fees accrued by locked LP (bounded by max_amount, LP-denominated). SDK: pool.claimLockFee2(owner, maxAmount, payer, receiver).
read get_pool_info()
Emits an event with pool token amounts, virtual price and timestamp (simulate the tx to read). Off-chain, AmmImpl.create(connection, pool).poolInfo gives the same data.
Dynamic Vault (`vault` program)vault on solana24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi
write deposit(token_amount: u64, minimum_lp_token_amount: u64)
Deposit the underlying token into a single-asset vault and mint vault LP (slippage-checked). DAMM v1 pools call this internally; direct use via @meteora-ag/vault-sdk vault.deposit(owner, amount).
write withdraw(unmint_amount: u64, min_out_amount: u64)
Burn vault LP and withdraw underlying from the vault reserve; use withdraw_directly_from_strategy when the reserve is short (the SDK picks automatically).
write withdraw_directly_from_strategy(unmint_amount: u64, min_out_amount: u64)
Withdraw by first pulling from a lending strategy when reserves are insufficient.
DAMM v1 Farming programstaking on solanaFarmuwXPWXvefWUeqFAa5w6rifLkq5X6E8bimYvrhCB1
MET (Meteora token)token on solanaMETvsvVRapdj9cFLzq4Tr43xK4tAjQfwX76z3n6mWQL
write SPL Token transfer / transferChecked
Standard SPL Token (Tokenkeg program) mint, 6 decimals; mint and freeze authority are null on-chain. Total supply 1,000,000,000 at TGE (23 Oct 2025), with burns since.