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:

  1. Gas Efficiency: One less transaction type

  2. Simplicity: Fees always included

  3. Auto-Compounding: Fees earn more fees

  4. 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

Last updated