Skip to main contentDAMM 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:
k=tokena×tokenb
Liquidity Invariant (D)
D=tokena×tokenb
Stable Swap Curve (StableSwap)
Implements Curve Finance’s StableSwap algorithm via Saber StableSwap.
Core StableSwap Invariant
A⋅nn⋅i∑xi+D=A⋅nn⋅D+nn⋅∏ixiDn+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=fee_denominatortoken_amount×fee_numerator
Where:
fee_denominator = 100,000