BTB Finance for agents

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

What an agent can do

swapSwap 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-positionOpen 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-positionRemove 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-feesClaim swap fees from a position
claim_fee2(min_bin_id, max_bin_id) for the position's bin range.

Contracts

solana

ContractAddressKey functionsTry
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

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