Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

DAMM v1 is Meteora’s legacy dynamic AMM on Solana. It supports constant-product pools, stable pools, LST/depeg pools, Dynamic Vault yield routing, launch-pool activation, LP locks, and farm integrations. To learn the product model before integrating, read the DAMM v1 product docs.

Learn more about DAMM v1

Overview of DAMM v1 pool types, vault yield, locks, farms, fees, and legacy integration limits.

DAMM v1 Formulas

Formulas for pool reserves, virtual price, LP share, swaps, deposits, withdrawals, fees, and vault accounting.

Integration

Program Accounts

Account model for pools, configs, locks, operators, vault relationships, PDA seeds, constants, and enums.

Program Instructions

Instruction families for pool creation, swaps, liquidity, locks, configs, fees, activation, and operator flows.

Program Events

Anchor events for pool creation, liquidity, swaps, configs, locks, fees, activation, and admin flows.

Program Errors

Anchor custom error codes, messages, and common integration causes for DAMM v1 transactions.

TypeScript SDK

Official SDK for pool reads, quotes, swaps, deposits, withdrawals, pool creation, configs, and LP locks.

Rust Integration

Rust quote helpers, PDA helpers, account builders, CLI examples, and CPI planning notes.

DAMM v1 APIs

Indexed read-only pool discovery, pool metrics, pool configs, fee configs, alpha vaults, and farm-backed pool data.

Program IDs

The amm program ID is the same on mainnet and devnet:
NetworkProgram ID
Mainnet BetaEo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB
DevnetEo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB
DAMM v1 pools route token inventory through Dynamic Vault:
ProgramID
Dynamic Vault24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi
FarmingFarmuwXPWXvefWUeqFAa5w6rifLkq5X6E8bimYvrhCB1

DAMM v1 SDK

Public TypeScript SDK, Rust quote crate, Rust common helpers, CLI, and examples.

DAMM v1 IDL

Bundled Anchor IDL used by the TypeScript SDK.

Pool Fee Configs

Published config keys used by config-based DAMM v1 launch pools.
DAMM v1 is a legacy product. For new AMM launches, compare your requirements with DAMM v2 and DBC before choosing DAMM v1.

Commands

TaskCommand
Build TypeScript SDKcd damm-v1-sdk/ts-client && pnpm install && pnpm run build
Run TypeScript SDK testscd damm-v1-sdk/ts-client && pnpm test
Run Rust quote testscd damm-v1-sdk && cargo t -p dynamic-amm-quote test_quote
Build Rust CLIcd damm-v1-sdk && cargo build -p cli
Build AMM programcd meteora-dynamic-amm && anchor build -p amm
Run AMM program testscd meteora-dynamic-amm && cargo test -p amm
Some SDK and program tests depend on local validator fixtures, deployed vault programs, or account snapshots. For production integrations, simulate transactions and test on devnet before submitting mainnet transactions.

Stay Updated

DAMM v1 Changelog

Program, SDK, quote, API, lock, and compatibility changes for integration planning.