Skip to main content

Liquidity Pools

xExchange Liquidity Pools
info

Liquidity pools emerged as an innovative and automated way of solving the liquidity challenge on DEXs. They replace the traditional order book model used by centralized crypto exchanges by using Automated Market Makers (AMM).

How it works

xExchange offers specific rewards to incentivize users to contribute liquidity to the pools. When they add liquidity to a pool, they receive a new token representing their stake, called a liquidity pool token or LP token.

The share of trading fees paid by users who use the pool to swap tokens is distributed automatically to all liquidity providers, proportional to their share of the entire liquidity in the pool. There is a 0.3% fee for swapping tokens.

Economics

Swapping tokens incurs a 0.3% fee. As part of that fee:

  • 0.2% goes to liquidity providers based on their share of the liquidity pool.

  • 0.05% is used to buy back and burn MEX from the EGLD/MEX pool.

  • The final 0.05% is distributed to all accounts with Energy.

The 0.2% fee is split among liquidity providers based on their share of the total liquidity in the pool. Here’s how it works: when a trade occurs, a 0.3% fee is charged, with 0.2% added directly to the liquidity pool. Since no new liquidity tokens are minted, this effectively distributes the fee among existing liquidity providers proportionally.

Swapping fees are immediately deposited into liquidity reserves. This increases the value of liquidity tokens, functioning as a payout to all liquidity providers proportional to their share of the pool.

Beyond Liquidity Pools

On xExchange, Liquidity Pool (LP) tokens can be staked in dedicated farms for each eligible pool, earning additional rewards in xMEX tokens.

A liquidity provider can thus earn rewards from two sources: trading fees from the liquidity pool and xMEX rewards for staking LP tokens in a farm.

Additionally, they can opt into a third stream through Dual Farms (where available) for even more rewards.

tip

The LP token is essential—you’ll need it to withdraw your stake from the liquidity pool.

What is Impermanent loss?

Providing liquidity can be profitable, but you’ll need to keep the concept of impermanent loss (IL) in mind. IL describes the temporary loss of funds occasionally experienced by liquidity providers because of volatility in a trading pair.

The bigger the volatility, the more you are exposed to IL as there is an irresistible opportunity for arbitrage, because the price in the LP doesn’t reflect what’s going on. In this case, the loss means less dollar value at the time of withdrawal than at the time of deposit. Impermanent loss is one of the fundamental concepts, it’s something that anyone who wants to provide liquidity to AMMs should understand.

Let’s assume you provide 50 EGLD and 5000 USDC as liquidity (which suggests the EGLD price is at 100 USDC). In the case of i.e. EGLD price increase, converting your LP token back into liquidity will result in less EGLD tokens and more USDC.

Example:

  • Starting point: EGLD 100,USDC100, USDC 1
  • Future point: EGLD 150,USDC150, USDC 1

When providing liquidity at the starting point as 50 EGLD and 5000 USDC:

  • Value at future point if held: $12,500.00 → 50 EGLD and 5000 USDC (hodl)
  • Value at future point if providing liquidity: $12,247.4 → 40.8 EGLD and 6123.7 USDC (in liquidity pool)
  • Impermanent loss: 2.02%

Consider the potential returns while providing liquidity (from swaps, farm rewards, staking rewards) versus the potential impermanent loss to take an informed risk decision.