Release summary
What We Shipped
- Zap in to a new DLMM Pro position with
zap_in_dlmm_pro - Zap out through a DLMM Pro swap
- TypeScript SDK
2.1.0
What To Do
| Integrators | What Changed | What To Do |
|---|---|---|
| Partners |
|
|
Program: zap 0.3.0
Program ID (mainnet and devnet): zapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMizAdded
- Added endpoint
zap_in_dlmm_pro. It opens a DLMM Pro position for the given tick ranges and addsmultiplier * weightliquidity to every range in one deposit, sized by the largest multiplier both ledger balances can fund. The binding side is used up. - The other side’s leftover goes into its single-sided range on the optional
leftover(range_xabove the price,range_ybelow it), and only that range is opened, after the shape ranges. With noleftover, that balance stays in the ledger. - A leftover range is given by its bound next to the price (
inner_tick_id) and away from it (outer_tick_id). Withleftover.is_inner_tick_relative,inner_tick_idis a distance in tick spacing away from the price, from the closest tick a single-sided range can start at for the pool tick at execution, so the leftover ranges start next to the price. Withleftover, the tick arrays can be passed in any order, and extra accounts are allowed. max_tick_slippageis the maximum distance between the pool tick at execution andcurrent_tick_id. The optionalmin_multiplierfails the instruction withExceededSlippagewhen the multiplier at execution is below it. A move inside a single tick can change the multiplier many times over when a range bound sits close to the price.- Range bounds and the leftover
outer_tick_idmust be within DLMM Pro’s min and max tick ([-443636, 443636]). zap_outsupports swapping through DLMM Pro (dPro1D5wiqnGMH8vMDG23jh35btTHoWdyqXjqkqxe8n)swap.
Changed
- Updated Anchor to
1.2.1(solana-v4crates), Solana to4.1.2, and Rust to1.95.0. The program is built with platform-toolsv1.57for SBPFv3. - Bumped the
damm-v2(cp-amm) dependency to the Anchor1.2.1revision.
TypeScript SDK: @meteora-ag/zap-sdk 2.1.0
SDK PR #41Added
- Support for Zap program
0.3.0: endpointzap_in_dlmm_pro, andzap_outswaps through DLMM Pro. zapOutThroughDlmmProzaps out by swapping through a DLMM Pro pool.getZapInDlmmProDirectParams,getZapInDlmmProIndirectParams, andbuildZapInDlmmProTransactionzap in to a new DLMM Pro position. The position is given as tick ranges with weights, for example therangesfrombuildLiquidityShapeof@meteora-ag/dlmm-pro-sdk.maxTickSlippageand the optionalminMultiplierbound the price slippage, and the optionalleftoverranges take what the ranges leave of the token that is not used up. The position NFT mint passed tobuildZapInDlmmProTransactionmust sign the zap-in transaction.estimateDlmmProDirectSwapandestimateDlmmProIndirectSwapsize the swaps of a DLMM Pro zap in. They also return the pool tick and the multiplier expected when the zap in executes, to pass as the tick the ranges were built against and to deriveminMultiplierfrom.getDlmmProZapInMultiplier, which mirrors how the program sizes the deposit, andgetDlmmProZapInTickArrays, which returns the tick arrays the zap in needs, including the ones theleftoverranges can resolve to.- Helpers
getDlmmProSwapInstruction,getDlmmProTickArraysForSwap,getDlmmProDepositTransferHookAccounts, andderiveDlmmProEventAuthority. - Constants
DLMM_PRO_PROGRAM_IDandAMOUNT_IN_DLMM_PRO_OFFSET. - Examples
zapInDlmmProDirect,zapInDlmmProIndirect, andzapOutThroughDlmmPro.
Changed
- Added the dependency
@meteora-ag/dlmm-pro-sdk. - The IDL of release
0.3.0names the types it shares between the pool programs after their program. InZapTypes,remainingAccountsInfo,remainingAccountsSlice, andaccountsTypeare nowdlmmDlmmTypesRemainingAccountsInfo,dlmmDlmmTypesRemainingAccountsSlice, anddlmmDlmmTypesAccountsType, andpoolis nowcpAmmStatePoolPool. The methods of the SDK take the same arguments as before.
Release summary
What We Shipped
- Whitelisted Jupiter
route_v2andshared_account_route_v2forzap_out zap_outnow derives theamount_inoffset from the AMM program and its instruction discriminator- Updated Anchor to
1.0.2 - Deprecated Jupiter
routeandshared_account_routein favor of the v2 routes. Both stay whitelisted forzap_out offset_amount_ininZapOutParametersis ignored. The field stays in the instruction layout
Program: zap 0.2.3
Program ID (mainnet and devnet): zapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMizChanged
- Update anchor to
1.0.2 - Endpoint
zap_outnow derives the offset ofamount_inin the swap payload from the amm program and its instruction discriminator, instead of reading it fromZapOutParameters.
Added
- Add Jupiter’s
route_v2andshared_account_route_v2as whitelisted instructions forzap_out
Deprecated
- Jupiter’s
routeandshared_account_routeare deprecated in favor ofroute_v2andshared_account_route_v2. They remain whitelisted forzap_outfor backward compatibility. offset_amount_ininZapOutParametersis ignored. It remains in the instruction layout for backward compatibility.
Release summary
What We Shipped
- Support Zap-In to damm-V2 Compounding Pool Fee Mode
- Support Zap-In to single-sided damm-v2 pool
What To Do
| Integrators | What Changed | What To Do |
|---|---|---|
| Partners |
|
|
Program: zap 0.2.2
Program ID (mainnet and devnet): zapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMizAdded
- Add support for damm-v2 pool with Compounding fee mode
Fixed
- Fix zap in to single-sided damm-v2 pool. A single-sided pool is a pool fully contains only one token in the pool pair, either fully token a (
sqrt_priceatsqrt_min_price) or fully token b (sqrt_priceatsqrt_max_price)
TypeScript SDK: @meteora-ag/zap-sdk 1.3.0
SDK PR #30Added
- Support Zap-In to damm-V2 Compounding Pool Fee Mode.
- Support Zap-In to single-sided damm-v2 pool. A single-sided pool is a pool that fully contains only one token of the pool pair, either fully token A (
sqrt_priceatsqrt_min_price) or fully token B (sqrt_priceatsqrt_max_price).
Fixed
- Rebalance DLMM position with 1 bin. Reference: https://github.com/MeteoraAg/dlmm-sdk/pull/286

