Meteora Documentation home page
Search...
βK
Ask AI
Meteora
Blog
Support
Search...
Navigation
DAMM v1
DAMM v1 Formulas
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
GitHub
Faucet
Support
Developer Updates
API Status
Introduction
Meteora Stack Overview
Quick Launch
DLMM Launch Pool
DAMM v2 Launch Pool
DAMM v1 Launch Pool
DBC Token Launch Pool
Invent with Metsumi
Metsumi Actions π
Metsumi Scaffolds π
Guides
DLMM
DAMM v1
Introduction
Pool Fee Configs
Dynamic Pool Configs
DAMM v1 Formulas
Typescript SDK
CPI
DAMM v2
DBC
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
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
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
Dynamic Pool Configs
Getting Started
Assistant
Responses are generated using AI and may contain mistakes.