Meteora Documentation home page
Search...
⌘K
GitHub
Faucet
Support
Developer Updates
Integration
Overview
DLMM
DAMM v1
Introduction
Pool Fee Configs
Dynamic Pool Configs
DAMM v1 Formulas
Typescript SDK
CPI
API
DAMM v2
DBC
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
Launch Pools
DLMM Launch Pool
Alpha Vault Launch Pool
DAMM v1 Launch Pool
DAMM v2 Launch Pool
Meteora
Blog
Support
Meteora Documentation home page
Search...
⌘K
Ask AI
Meteora
Blog
Support
Search...
Navigation
DAMM v1
DAMM v1 Formulas
Overview
Anti Sniper Suite
Developer Guide
Resources
Legal
Overview
Anti Sniper Suite
Developer Guide
Resources
Legal
DAMM v1
DAMM v1 Formulas
Copy page
Copy page
DAMM v1 is a traditional full-range liquidity AMM with multiple curve support.
Constant Product Curve (xy = k)
The constant product formula maintains liquidity invariance through the following relationships:
Invariant Formula
k
=
token
a
×
token
b
k = \text{token}_a \times \text{token}_b
k
=
token
a
×
token
b
Liquidity Invariant (D)
D
=
token
a
×
token
b
D = \sqrt{\text{token}_a \times \text{token}_b}
D
=
token
a
×
token
b
Stable Swap Curve (StableSwap)
Implements Curve Finance’s StableSwap algorithm via Saber StableSwap.
Core StableSwap Invariant
A
⋅
n
n
⋅
∑
i
x
i
+
D
=
A
⋅
n
n
⋅
D
+
D
n
+
1
n
n
⋅
∏
i
x
i
A \cdot n^n \cdot \sum_{i} x_i + D = A \cdot n^n \cdot D + \frac{D^{n+1}}{n^n \cdot \prod_{i} x_i}
A
⋅
n
n
⋅
i
∑
x
i
+
D
=
A
⋅
n
n
⋅
D
+
n
n
⋅
∏
i
x
i
D
n
+
1
Where:
A
= amplification coefficient
n
= number of tokens (2 for pairs)
x_i
= token amounts
D
= invariant
Fee Calculation Formulas
Trading Fees
Base Trading Fee
fee
=
token_amount
×
fee_numerator
fee_denominator
\text{fee} = \frac{\text{token\_amount} \times \text{fee\_numerator}}{\text{fee\_denominator}}
fee
=
fee_denominator
token_amount
×
fee_numerator
Where:
fee_denominator
= 100,000
Was this page helpful?
Yes
No
Previous
Getting Started
DAMM v1
Next
On this page
Constant Product Curve (xy = k)
Invariant Formula
Liquidity Invariant (D)
Stable Swap Curve (StableSwap)
Core StableSwap Invariant
Fee Calculation Formulas
Trading Fees
Base Trading Fee
Assistant
Responses are generated using AI and may contain mistakes.