DAMM v2 Overview

Summary

Dynamic AMM v2 (DAMM v2) is a brand new constant-product AMM program for liquidity pools, with a set of features to optimize transaction fees and provide greater flexibility for liquidity providers, launchpads, and token launches.

Note: DAMM v2 is a new program, and not an upgrade of the Dynamic AMM v1 program.

Key Features

DAMM v2 would come with the following features:

  • More token support: SPL and Token 2022

  • Concentrated liquidity: Partial concentration of liquidity for higher capital efficiency, within a configured min-max price range

  • Position NFT: Liquidity position is not represented by an LP Token, but by a position NFT

  • Dynamic Fee: Option of Fixed Base Fee only or Dynamic Fee, which helps maximize returns during periods of higher volatility

  • LP Fee Scheduler: Option of an On-chain Fee scheduler where LP fee drops over time (linearly or exponentially), as an anti-sniper mechanism

  • New LP Fee claiming mechanism: LP Fee no longer auto-compounds into the pool liquidity. Can be claimed separately from liquidity withdrawal. This allows the building of additional features into the fee distribution system

  • LP Fee collection mode: Ability to select your preferred token for LP fee collection; Base + Quote or Quote token only

  • Lock liquidity options: Option to lock liquidity with vesting (non-permanent lock) or permanently lock liquidity, while still providing the ability to claim fees

  • Built-in Farming mechanism: Built-in farming within the program, not a separate Farm program

  • No Dynamic Vault integration: DAMM v2 would not be integrated with Dynamic Vaults to lend tokens to external lending protocols

SPL and Token 2022 support

Users can create pools or add liquidity for tokens that support both SPL and Token 2022 (Transfer Fee, Metadata, MetadataPointer extensions).

All Token 2022 tokens with Metadata pointer, and transfer fee extensions are supported permissionlessly. Token mints with other extensions can be whitelisted by Meteora's admin.

Concentrated Liquidity

DAMM v2 is a constant product pool but still enables pool creators to partially concentrate liquidity using a slightly tighter price range for higher capital efficiency. Once the pool is created, LPs that enter the pool would not be able to adjust the price range. This feature combines the benefits of a constant product AMM with the concentrated liquidity feature of a CLMM.

Position NFT

Liquidity position is not represented by an LP Token, but by a position NFT. This position NFT can be transferred to another wallet address.

Dynamic Fee

Pool creator has the option of choosing a Fixed Base Fee only or Dynamic Fee, which is Base Fee + Variable Fee based on price volatility.

Dynamic Fee helps maximize returns for LPs during periods of higher volatility.

LP Fee Scheduler

Pool creator has the option of using an On-chain Fee Scheduler, where LP fees can drop over time (linearly or exponentially). This acts as an anti-sniper mechanism as you can set higher fees at the very start of the token launch.

Linear Fee Scheduler Example

Exponential Fee Scheduler Example

New LP Fee Claiming mechanism

LP Fee no longer auto-compounds into the pool liquidity. Can be claimed separately from liquidity withdrawal. This allows the building of additional features into the fee distribution system. For example, enabling the claiming of LP Fee in a preferred token (e.g. SOL or USDC), or locking liquidity position permanently but still allow fees to be claimed.

LP Fee Collection Mode

Pool creator has the ability to select your preferred token for LP Fee Collection: Base + Quote or Quote token only.

Lock Liquidity Options

Pool creator has the option to lock liquidity with vesting (non-permanent lock) or permanently lock liquidity.

Built-in Farming mechanism

There is now built-in farming within the program, not using a separate Farm program like in Dynamic AMM v1.

No Dynamic Vault integration

DAMM v2 would not be integrated with Dynamic Vaults to lend tokens to external lending protocols. Each pool now includes a set of unique accounts for swap instruction; there are no more hot accounts or shared accounts between 2 pools, which optimizes the Compute Unit (CU) and transaction fees required.

DAMM v2 Integration

Please visit DAMM v2 SDK.

Last updated