Collect Fees
Understanding fee collection in DLMM - fees are automatically included when removing liquidity, with no separate claim mechanism required.
How DLMM Handles Fees
Unlike some protocols, DLMM:
No separate claim: Fees included in withdrawals
Auto-compound: Fees increase bin reserves
Proportional distribution: Based on liquidity share
Gas efficient: No extra transactions needed
Fees Are Included Automatically
// When you remove liquidity, fees are included
const tx = await sdk.Pair.removeLiquidity(pair, {
positionId,
binIds: selectedBins
});
// The returned tokens include:
// 1. Your share of reserves
// 2. Your share of accumulated fees
// No separate fee claim needed!Understanding Fee Distribution
Compound Fees Strategy
Since fees auto-compound, you can:
Calculate Claimable Fees
Partial Fee Collection
Why No Separate Collection?
DLMM's design benefits:
Gas Efficiency: One less transaction type
Simplicity: Fees always included
Auto-Compounding: Fees earn more fees
Fair Distribution: Proportional to contribution
Common Patterns
Monitor Fee Growth
Exit Strategy
Key Takeaways
No claim button: Fees included in removals
Always earning: Fees compound automatically
Flexible collection: Remove any bins anytime
Gas efficient: No separate transactions
Related Topics
Calculate Position Fees - Track earnings
Remove from Specific Bins - Partial collection
Fee Structure - How fees accumulate
Position Value - Total worth with fees
Last updated