BTB Finance for agents

Protocols / Dexs

Meteora DAMM V1

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.

On-chain + APISOLANA4 contractsWebsite · Docs

get_protocol({ "protocol": "meteora-damm-v1" })

Risks an agent should know

What an agent can do

swapSwap on a DAMM v1 pool
Simplest: 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 token
GET https://damm-api.meteora.ag/pools/search?include_token_mints=<mint> or AmmImpl.searchPoolsByToken(connection, mint)
add-liquidityDeposit into a pool
pool.getDepositQuote(aIn, bIn, true, slippage) -> pool.deposit(owner, q.tokenAInAmount, q.tokenBInAmount, q.minPoolTokenAmountOut) (program add_balance_liquidity)
remove-liquidityWithdraw from a pool
pool.getWithdrawQuote(lpAmount, slippage) -> pool.withdraw(owner, lpAmount, q.minTokenAOutAmount, q.minTokenBOutAmount) (program remove_balance_liquidity)
create-poolCreate a permissionless pool
AmmImpl.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 fees
pool.lockLiquidity(owner, amount) (create_lock_escrow + lock); claim with pool.claimLockFee2(owner, maxAmount, payer, receiver)

Contracts

solana

ContractAddressKey functionsTry
DAMM v1 / Dynamic AMM (`amm` program)
exchange
Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB
source
writeswap(in_amount: u64, minimum_out_amount: u64)
writeadd_balance_liquidity(pool_token_amount: u64, maximum_token_a_amount: u64, maximum_token_b_amount: u64)
writeadd_imbalance_liquidity(minimum_pool_token_amount: u64, token_a_amount: u64, token_b_amount: u64)
writeremove_balance_liquidity(pool_token_amount: u64, minimum_a_token_out: u64, minimum_b_token_out: u64)
writeremove_liquidity_single_side(pool_token_amount: u64, minimum_out_amount: u64)
writeinitialize_permissionless_pool_with_fee_tier(curve_type: CurveType, trade_fee_bps: u64, token_a_amount: u64, token_b_amount: u64)
writeinitialize_permissionless_pool(curve_type: CurveType, token_a_amount: u64, token_b_amount: u64)
writeinitialize_permissionless_constant_product_pool_with_config2(token_a_amount: u64, token_b_amount: u64, activation_point: Option<u64>)
+5 more via get_protocol
Dynamic Vault (`vault` program)
vault
24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi
source
writedeposit(token_amount: u64, minimum_lp_token_amount: u64)
writewithdraw(unmint_amount: u64, min_out_amount: u64)
writewithdraw_directly_from_strategy(unmint_amount: u64, min_out_amount: u64)
DAMM v1 Farming program
staking
FarmuwXPWXvefWUeqFAa5w6rifLkq5X6E8bimYvrhCB1
source
MET (Meteora token)
token
METvsvVRapdj9cFLzq4Tr43xK4tAjQfwX76z3n6mWQL
source
writeSPL Token transfer / transferChecked

APIs

DAMM v1 Data API
auth: none
https://damm-api.meteora.ag
Read-only indexed pool discovery and metrics: GET /pools, GET /pools/search (filter by mints, pool_type, TVL/APR), pool configs, fee configs, alpha vaults, farm-backed pools. Swagger at https://damm-api.meteora.ag/swagger-ui/. Not for exact state when building txs: load pools on-chain with the SDK.
@meteora-ag/dynamic-amm-sdk (TypeScript SDK)
auth: none
https://github.com/MeteoraAg/damm-v1-sdk
Official SDK: AmmImpl.create / createMultiple / searchPoolsByToken, getSwapQuote + swap, getDepositQuote + deposit, getWithdrawQuote + withdraw, createPermissionlessPool and config pool creators, lockLiquidity, claimLockFee2. Returns unsigned Transactions. Use v2.0.0+ with program 0.5.7.

Notes

This entry is DAMM v1 only. Other Meteora products have their own programs (from official developer guides): DAMM v2 `cp_amm` cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG (pool authority HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC, https://docs.meteora.ag/developer-guides/damm-v2/index) and DLMM `lb_clmm` LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo (https://docs.meteora.ag/developer-guides/dlmm/index); both are separate DefiLlama entries and not listed as contracts here. All DAMM v1/vault/farm program IDs are identical on mainnet and devnet and were confirmed executable via getAccountInfo. Dynamic Vault affiliate program GacY9YuN16HNRTy7ZWwULPccwvfFSBeNLuAQP7y38Du3 is mentioned in the vault guide but omitted (not needed for DAMM v1). Instruction signatures come from the official IDL bundled in the SDK (https://github.com/MeteoraAg/damm-v1-sdk/blob/main/ts-client/src/amm/idl.ts); account lists are long (vaults, vault LP, protocol fee accounts), so build transactions with the SDK. The farming program is being deprecated per Meteora's farming changelog. Sample mainnet pools from the SDK reference: USDT/USDC 32D4zRxNc1EssbJieVHfPhZM3rH6CzfUPrWUuWxD9prG, USDC/SOL 5yuefgbJJpmFNK2iiYbLSpv1aZXq7F9AUKkZKErTYCvs. No standalone swap REST API is offered by Meteora; Jupiter is the usual aggregator path (Jupiter's own API is third-party and not documented here). No specific DAMM v1 security incident was found on official pages.

Sources

Researched 2026-11-25. Addresses are copied from the official sources above; check them before moving large amounts.