Protocols / Dexs
Meteora DLMM
Meteora DLMM (lb_clmm) is a bin-based concentrated liquidity AMM on Solana with dynamic fees. An agent can swap through a pool, and open, change, claim from and close positions made of price bins.
On-chainSOLANA1 contractsWebsite · Docs
get_protocol({ "protocol": "meteora-dlmm" })Risks an agent should know
- Liquidity sits in bins. A position only earns fees on bins the price has crossed, and an out-of-range position holds one token.
- Dynamic fees rise when volatility rises, so the fee paid on a swap can be higher than the base fee.
- Pools can be created permissionlessly for any token pair. Check mints and pool liquidity before providing liquidity.
- Program upgrades and the operator roles can change pool parameters, fee settings and reward funding.
- Swap and liquidity instructions need many accounts, including bin arrays that must exist. Use the SDK to avoid wrong account lists.
What an agent can do
| swap | Swap through a DLMM pool Quote with the DLMM SDK, then send swap2(amount_in, min_amount_out) with the bin arrays for the price path. Use min_amount_out from the quote minus slippage. |
| open-position | Open a position and add liquidity in a bin range initialize_position2(lower_bin_id, width) to create the position, then add_liquidity_by_strategy2 with a strategy and the amounts for X and Y. |
| close-position | Remove liquidity and close a DLMM position remove_liquidity_by_range2 (bps_to_remove 10000) over the position's bin range, claim_fee2 and claim_reward2 if needed, then close_position2. |
| claim-fees | Claim swap fees from a position claim_fee2(min_bin_id, max_bin_id) for the position's bin range. |
Contracts
solana
| Contract | Address | Key functions | Try |
|---|---|---|---|
| lb_clmm program (DLMM) exchange | LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo source | writeswap2 writeswap_exact_out2 writeinitialize_position2 writeadd_liquidity_by_strategy2 writeremove_liquidity_by_range2 writeremove_liquidity2 writeclaim_fee2 writeclaim_reward2 +2 more via get_protocol |
APIs
| DLMM TypeScript SDK (@meteora-ag/dlmm) auth: none | https://github.com/MeteoraAg/dlmm-sdk Official SDK that builds the swap, liquidity and claim transactions, picks bin arrays, and quotes swaps. Use it rather than building remaining accounts by hand. |
Notes
Program ID LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo comes from the program's own IDL in the official MeteoraAg/dlmm-sdk repository (the address field), and the same ID is listed in Meteora's developer guide. It was confirmed as an executable program with getAccountInfo on Solana mainnet. The on-chain program source is not published, so instruction names and arguments come from the public IDL. The IDL also has older instruction versions without the 2 suffix (swap, add_liquidity, remove_liquidity, claim_fee and others); this entry lists the newer 2 variants. Meteora's program IDs page was not reachable during research, so the docs link points to the DLMM developer guide. Other Meteora products have their own programs: DAMM v1 (amm) and DAMM v2 (cp_amm) are separate registry entries.
Sources
- https://raw.githubusercontent.com/MeteoraAg/dlmm-sdk/main/idls/dlmm.json
- https://docs.meteora.ag/developer-guides/dlmm
- https://docs.meteora.ag/developer-guides/dlmm/typescript-sdk/reference
- https://github.com/MeteoraAg/dlmm-sdk
- https://api.llama.fi/protocol/meteora-dlmm
Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.