V2 Fees
All V2 pools charge a fixed 0.3% fee on every swap. This fee is not configurable per pool.How Fees Work
The fee is applied to the input token before the swap calculation:- Trader sends
amountInof token A - The effective input is
amountIn × 0.997(0.3% deducted) - The output amount is calculated using the reduced input
- The fee portion remains in the pool, increasing
k
Fee Accumulation
Fees are not distributed separately — they accumulate directly in the pool reserves. This means:kgrows over time as fees are collected- LP token value increases proportionally
- LPs claim their fees when they withdraw liquidity (burn LP tokens)
Example
A pool with 100,000 A / 100,000 B reserves:| Day | Swap Volume | Fees Collected | New k |
|---|---|---|---|
| 1 | 10,000 A | 30 A | Slightly higher |
| 2 | 50,000 B | 150 B | Higher still |
Comparison with V3
| V2 | V3 | |
|---|---|---|
| Fee rate | Fixed 0.3% | Selectable (0.01%, 0.05%, 0.3%, 1%) |
| Fee collection | Auto-compounded into reserves | Collected separately, must be claimed |
| Fee per LP | Distributed evenly across all LPs | Only earned by in-range positions |