Meteora Documentation home page
Search...
⌘K
Ask AI
Meteora
Blog
Support
Search...
Navigation
DAMM v1
DAMM v1 Formulas
Welcome
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
Join the LP Army!
We Build Liquidity Pools
Products
DLMM
DAMM v2
DAMM v1
What's DAMM v1?
LP Fee and APY Calculation
DAMM v1 Formulas
Stable Pools
LST Pools
Pools with Farms
Additional Yield From Dynamic Vaults
DBC
Other Products
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
Zap
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
LP Fee and APY Calculation
Previous
Stable Pools
Next
Assistant
Responses are generated using AI and may contain mistakes.