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.
Mainnet deployment for Release 0.12.0 is planned for May 21, 2026, at 11:00 AM UTC+8 (Wednesday).
Release summary
| Component | Version | PR |
|---|---|---|
| Program | 0.12.0 | — |
| TypeScript SDK | 1.9.8 | dlmm-sdk #273 |
| CLI | 0.6.3 | dlmm-sdk #273 |
| Commons | 0.3.3 | dlmm-sdk #273 |
What We Shipped
- Limit Orders
- Quote Token Fee
What To Do
| Integrators | What Changed | What To Do |
|---|---|---|
| Swap Routers |
|
|
| Trading Terminals |
|
|
| Partners |
|
|
Program: lb_clmm 0.12.0
Program ID (mainnet and devnet): LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxoAdded
- New endpoint
add_liquidity_by_weight2, that is same asadd_liquidity_by_weightbut supports token2022 - New endpoint
set_permissionless_operation_bitsto allow position owner to enable permissionless authorization on some operations such asclaim_fee - New endpoint
place_limit_orderto allow user to place limit orders for either bid or ask side. - New endpoint
cancel_limit_orderto cancel limit order. - New endpoint
close_limit_order_if_emptyto close a limit order if it’s empty. - New endpoint
close_bin_arrayto close an invalid bin array. - Account
PresetParameteradded newcollect_fee_modefield. All the existingPresetParameteraccount will have defaultCollectFeeMode::OnlyInput. - Account
LbPair::StaticParametersadded newcollect_fee_modefield. All existing LbPair account will have defaultCollectFeeMode::OnlyInput.
Changed
- Allow permissionless claim_fee if position owner enabled it
- All the existing
LbPairaccounts without any liquidity mining rewards will be defaulted to limit order supported pool and doesn’t support LM anymore. This is not revert-able. - Updated
initialize_permissioned_lb_pairparameterInitPermissionPairIxfieldprotocol_sharetopadding0because it was no longer in use - Endpoint
go_to_a_binwill revert if the pool is disabled / before activation. The restriction can be bypassed by operator by passing operator associated accounts through remaining accounts.
Removed
- Remove endpoint
reset_pool_tombstone_fields,reset_bin_array_tombstone_fields,reset_position_tombstone_fields
Breaking Changes
- Endpoint
initialize_preset_parameteradded newcollect_fee_modefield. - Endpoint
initialize_preset_parameterfield function_type enum type has been changed to concrete_function_type. - Enum
FunctionTypeno longer defaulted toFunctionType::LiquidityMining. All existing on chainLbPairaccount will defaulted toFunctionType::Undetermined. WithFunctionType::Undetermined, if there’s liquidity reward initialized, it will beFunctionType::LiquidityMining, else will beFunctionType::LimitOrder - Swap quote mechanism due to introducing of collect fee mode on in/out side, and limit order mechanism. Affected endpoints are
swap,swap_exact_out,swap_with_price_impact,swap2,swap_exact_out2andswap_with_price_impact2. - Due to new limit order logic (consuming more CU), max bins to swap in 1 instruction changes from 280 bins to 260 bins
- Endpoint
swapandswap2bitmap extension account will bemutabledue to limit order logic require flipping of liquidity tracking bits. - Event
FeeParameterUpdateadded new fieldbase_fee_power_factor AccountsTypeenum variants introducesTransferHookReferral. Clients buildingswap2,swap_exact_out2andswap_with_price_impact2instructions must update theirRemainingAccountsInfoslices to includeAccountsType::TransferHookReferralwhen the swap hashost_fee_inaccount. Additionally, any required transfer hook accounts for the referral mint must also be provided in the instruction.
TypeScript SDK: @meteora-ag/dlmm 1.9.8
SDK PR #273Added
- Added function
placeLimitOrderto place a new limit order. Only applicable for pair with function type of LimitOrder. - Added function
cancelLimitOrderto cancel an existing limit order. - Added function
closeLimitOrderIfEmptyto close a limit order if it’s empty. - Added function
enablePositionPermissionlessClaimFee. This allow non position owner to invoke claim fee instruction for other’s position. - Added function
getLimitOrderByUserAndLbPairto get all limit orders of a user for a given pair. - Added function
getLimitOrderto get limit order data by limit order pubkey. - Added function
addLiquidityByWeight2which support token 2022 add liquidity by weight. - Added function
quoteCreateLimitOrderwhich returns the cost for creating a Limit Order
Breaking Changes
- Added
concreteFunctionType,collectFeeModeparameters increateCustomizablePermissionlessLbPairfunction. This allow user to create pair with function of LimitOrder or LiquidityMining and collect fee in InputToken, or TokenY (single sided fee). - Added
concreteFunctionType,collectFeeModeparameters ingetPairPubkeyIfExistsfunction. This allow user to query existing pair with addition filter of function type and collect fee mode.
Removed
Positiontype (v1) removed, there’s no more v1 position on chain anymore.updateBinArrayfunction removed since it’s not used anywhere.
Changes
- Update logic of
swapQuoteandswapQuoteExactOutto limit order and collect fee mode. swapExactOutQuoteAtBinfunction’s ‘amountIn` now include fee.
CLI: 0.6.3
CLI PR #273Added
- Added
place_limit_ordercommand to place limit orders - Added
cancel_limit_ordercommand to cancel existing limit orders - Added
close_limit_order_if_emptycommand to close empty limit order account - Added
get_limit_orderscommand to query limit orders for a user on a specific pair - Added
set_permissionless_operation_bitscommand to set operation bits on a position
Commons: 0.3.3
Commons PR #273Added
- Added
DynamicPositionindynamic_position.rsto support parsing on position account - Added
LimitOrderinlimit_order.rsto support parsing on limit order account
Changed
quote_exact_in()andquote_exact_out()now support limit order liquidity

