XDEX is the primary decentralized exchange on X1 Blockchain — a Constant Product Market Maker built on the model proven by Uniswap and Raydium, native to Token-2022, with liquidity pools, yield farming and validator staking in one interface.

How a constant product market maker works

XDEX has no order book. There are no bids, no asks, and no counterparty waiting to take the other side of your trade. Instead there is a pool holding reserves of two assets, and a formula.

The formula is x × y = k, where x and y are the two reserves and k is a constant that must be preserved by every swap. The current price is simply the ratio between the reserves. To buy asset Y, you add asset X to the pool and remove enough Y that the product of the new reserves still equals k.

Two consequences fall directly out of this, and both are important:

  • There is always liquidity at some price. The curve never runs out — as one reserve depletes, its price rises toward infinity. You can always trade. You may not like the rate.
  • Price moves against you within your own trade. This is slippage, and it scales non-linearly with size relative to the pool. A trade worth 1% of pool liquidity moves the price roughly 2%; a trade worth 10% moves it far more than ten times as much.

Arbitrage is what keeps the pool honest. If the pool price diverges from the wider market, traders profit by correcting it, and that profit motive drags the pool back into line. The system requires no oracle for its own pricing — the arbitrageurs are the price feed.

Token-2022 native

XDEX supports Token-2022, the extended SPL token standard, from the outset. This is a more meaningful design decision than it appears.

Token-2022 adds extensions to the base token standard: transfer fees, confidential transfers, non-transferable tokens, interest-bearing tokens, transfer hooks and more. These enable token designs that were not previously expressible — including the confidential payments work on X1.

The catch is that extensions can break naive AMM integrations in ways that are not obvious. A token with a transfer fee delivers less than the stated amount when moved — an AMM that assumes the amount sent equals the amount received will miscalculate reserves and can be drained. Transfer hooks execute arbitrary code during a transfer, which introduces reentrancy considerations. Supporting Token-2022 properly means handling these cases explicitly rather than assuming standard token semantics, and a DEX that is native to the standard has designed for that rather than bolted it on.

Liquidity provision and its actual economics

Liquidity providers deposit both assets in the pool's current ratio and receive LP tokens representing their proportional share. Swap fees accrue to the pool, and the LP's share of it grows accordingly.

Against that fee income sits impermanent loss, which is worth understanding rather than dismissing.

When the price ratio between the pooled assets changes, arbitrageurs rebalance the pool — buying whichever asset has become relatively cheap and selling the other. This is what keeps pricing correct, and it works. But the LP is on the other side of every one of those trades. The result is that the LP holds proportionally more of the asset that fell and less of the asset that rose, and the position is worth less than simply holding both tokens would have been.

The clearest framing: a liquidity provider is selling volatility. You collect fee income continuously, and in exchange you accept a worse outcome than holding whenever prices move in either direction. The position is profitable when accumulated fees exceed divergence loss. That tends to hold in high-volume, low-volatility pairs and to fail in low-volume, high-volatility ones — which is precisely the profile of most newly launched tokens.

It is called impermanent because the gap closes if the ratio returns to its starting point. Frequently it does not, and on withdrawal the loss is fully realised.

Yield farming

LP tokens can be staked to earn additional XNT rewards. Farming incentives exist to solve the cold-start problem: a new pair has no liquidity, thin liquidity means bad execution, bad execution means no volume, and no volume means no fee income to attract liquidity. Emissions subsidise the pool past that threshold.

The honest note is that farming rewards are a subsidy, not organic yield. They are paid in emitted tokens and are inherently temporary — either they taper, or they continue and dilute. An advertised APR that is mostly emissions is a different proposition from one that is mostly swap fees. The question worth asking of any farm is what the yield looks like when incentives end, because that is the yield the pool actually generates.

Validator staking in the same interface

XDEX also supports delegating XNT to validators directly, so users can hold, trade, provide liquidity and stake without moving between applications. Our X1 staking guide covers the full range of options — native delegation, the official pXNT stake pool, and third-party liquid staking — and how they differ in risk and liquidity.

Composability across the X1 stack

XDEX sits at the centre of X1's DeFi stack rather than beside it. Liquid staking tokens from Ripper Pool trade and farm on XDEX. Tokens from Degen graduate directly into XDEX pools with locked liquidity. The X1 Bridge routes assets from Solana, giving pools a stable quote asset in USDC.X. RipperSwap adds multi-hop routing and aggregation across the same liquidity.

This is real composability — each integration is live rather than announced. The dynamic it produces runs in both directions, though: a stack this interconnected means a problem in one component propagates. Liquid staking tokens used as collateral elsewhere transmit any depeg outward. That is the standing tradeoff of composable DeFi, on X1 as anywhere else.

Live XNT price, pool liquidity and 24-hour volume are tracked on our XNT price page.