Fee System & Claiming

LiquidCore implements a dynamic fee system.

Dynamic Fee System

Fees adjust dynamically based on pool balance and trading patterns. Use getPoolFees() to check current rates - see API Reference for details.

Fee Distribution

Split Structure

All trading fees are automatically split:

  • 90% → Liquidity Providers (distributed proportionally by LP token balance)

  • 10% → Protocol Treasury

Fee Accrual

  • Fees accrue continuously with each trade

  • Distributed proportionally based on LP token ownership

  • Unclaimed fees never expire

Fee Claiming Options

1. Manual Fee Claiming

Withdraw accumulated fees as tokens:

Returns:

  • amount0: token0 fees claimed

  • amount1: token1 fees claimed

2. Fee Compounding

Convert fees to additional LP tokens automatically:

Returns: Number of new LP tokens minted from compounded fees

Viewing Fee Information

Use getUserPosition(address) to check LP balance and claimable fees. See API Reference for details.

Last updated