percentAPR Calculations

๐Ÿ“ˆ Let's Understand XDEX APR Calculations

XDEX leverages the Constant Product Market Maker (CPMM) model to ensure liquidity is uniformly distributed across all price ranges. This design simplifies both trading and APR calculations, benefiting both traders and liquidity providers by creating a straightforward and efficient system for rewards.


๐Ÿ“˜ Definition

APR (Annual Percentage Rate) reflects the potential earnings for liquidity providers, based on the trading fees generated by a pool over a given time period.


๐Ÿ“Œ Assumptions

  • ๐Ÿ”น Trading fees are distributed proportionally among all LPs.

  • ๐Ÿ”น Liquidity is evenly spread across all price points (a core property of CPMM pools).


๐Ÿงฎ APR Formula

APR = ( Total Trading Fees / Total Liquidity Value ) ร— 100

Where:

๐Ÿ”น Total Trading Fees = Cumulative fees earned by the pool over a selected timeframe (e.g., daily, monthly, yearly) ๐Ÿ”น Total Liquidity Value = Combined USD value of all assets deposited in the pool


๐Ÿ“Š Example Calculation

Letโ€™s say the pool earns $10,000 in trading fees over the course of one year, and the total liquidity value in the pool is $100,000:

This means liquidity providers could expect a 10% APR based solely on trading fees, assuming their position remains constant.


๐Ÿงฉ XDEX-Specific Considerations

๐Ÿ”น Uniform Liquidity Distribution

CPMM ensures liquidity is always available across all price points โ€” no manual rebalancing or range-setting required.

๐Ÿ”น Transparent Fee Structure

84% of the 0.25% trading fee is returned directly to LPs, ensuring rewards scale with trading volume.

๐Ÿ”น Simplified APR Estimation

Thanks to CPMMโ€™s consistency, APR is calculated with a single, clear formula โ€” no need for concentrated liquidity math.


โœ… Benefits of XDEXโ€™s CPMM Model for LPs

โœ”๏ธ Consistent Liquidity Uninterrupted access to liquidity at any price level.

โœ”๏ธ Straightforward Rewards LPs earn directly from protocol volume โ€” no complicated staking or position management.

โœ”๏ธ Transparent APR APR is simple to calculate and easy to understand, in line with XDEXโ€™s mission of accessible, user-friendly DeFi.

Last updated