Glossary
Oct 2, 2026

What Is a DEX? Decentralized Exchange Meaning

A DEX (decentralized exchange) lets you swap crypto from your own wallet via smart contracts. How DEXs work, a worked swap example, risks and DEX vs CEX.

What Is a DEX? Decentralized Exchange Meaning

A DEX (decentralized exchange) is a crypto trading venue run by smart contracts, where users swap tokens directly from their own wallets without handing custody to a company. There is no account to open and no order desk in the middle: the code holds the liquidity, sets the price and settles every trade on-chain.

DEX definition

DEX stands for decentralized exchange. The "decentralized" part refers to custody and settlement. On a centralized exchange (CEX) you deposit funds into the exchange's wallets and trade against an internal ledger. On a DEX your tokens stay in your wallet until the moment you sign a swap, and the trade settles in the same blockchain transaction.

Most DEXs today are built on an automated market maker (AMM): instead of matching buyers with sellers, traders swap against a pool of two or more tokens supplied by liquidity providers. A smaller group of DEXs run fully on-chain order books, and some newer designs mix the two.

A DEX is not automatically safer than a CEX. It removes counterparty risk from a company, but replaces it with smart-contract risk, front-end risk and the risk of trading tokens nobody has vetted. If you want the full comparison, see our guide to CeFi vs DeFi.

How a DEX works

A typical AMM-based swap looks like this:

  1. Connect a wallet. The DEX front end reads your balances but cannot move funds without your signature.
  2. Get a quote. The contract calculates how much of token B you receive for your token A, based on the pool's reserves and its pricing formula (for example, constant product x × y = k).
  3. Set slippage tolerance. You choose the worst price you will accept, because the pool may move before your transaction lands.
  4. Sign and settle. The contract takes your token A, sends token B, and charges a swap fee (often 0.01% to 1%) that goes mostly to liquidity providers.

Liquidity providers deposit token pairs into the pool and receive LP tokens or position NFTs that represent their share. Concentrated-liquidity DEXs let LPs choose a price range, which makes their capital more efficient but means they stop earning fees when the price leaves that range. Our explainer on concentrated liquidity (CLMM) covers that in detail.

DEX example

Say a hypothetical pool holds 100,000 USDC and 50 ETH, so the implied price is 2,000 USDC per ETH, and the product k = 100,000 × 50 = 5,000,000. You want to swap 10,000 USDC for ETH, with a 0.3% fee.

  1. The fee is 30 USDC, so 9,970 USDC actually enters the pricing formula.
  2. New USDC reserve: 109,970. To keep k constant, the ETH reserve must fall to 5,000,000 ÷ 109,970 ≈ 45.467 ETH.
  3. You receive 50 − 45.467 ≈ 4.533 ETH, an average price of about 2,206 USDC per ETH.

At the starting price you would have expected 5 ETH. The roughly 9% gap is price impact: your trade was 10% of the pool, so it moved the price against you. The same order in a pool ten times deeper would get much closer to 2,000. This is why pool depth matters more than the headline fee.

Why DEXs matter

  • Self-custody. A DEX cannot freeze your account or lose your deposit in an insolvency, because it never holds your funds between trades.
  • Open listing cuts both ways. Anyone can create a pool for any token, which is how new projects launch and also how scam tokens and rug pulls reach buyers.
  • Execution costs are real. You pay the swap fee, network gas, and price impact. Thin pools and wide slippage settings can cost more than a CEX trading fee.
  • MEV. On some chains, bots can see your pending swap and trade around it (a sandwich attack). Tight slippage limits reduce what they can extract.
  • Approvals. Token approvals you grant to a DEX router stay active until revoked; a malicious or compromised contract can use them.

DEXs on JewelSwap

JewelSwap does not compete as a general-purpose DEX; its yield farms plug into existing ones. On MultiversX, JewelSwap farms integrate with the AshSwap, OneDex and xExchange DEXs (plus the Hatom protocol); on Sui they use Cetus and Turbos, alongside the Scallop lending protocol. For how those Sui venues differ, read our Sui DEX comparison.

  • AMM (automated market maker) — the pool-based pricing engine behind most DEXs.
  • Liquidity pool — the smart contract holding the tokens that traders swap against.
  • Slippage — the difference between the quoted price and the price you actually get.
  • DEX aggregator — a router that splits a trade across several DEXs for a better price.
  • Gas fees — the network fee paid on top of the DEX's swap fee.

Learn more on the JewelSwap blog

Frequently asked questions

What does DEX stand for in crypto?

DEX stands for decentralized exchange: a smart-contract-based market where you swap tokens from your own wallet, without depositing them with a company first.

DEX vs CEX: what is the difference?

A CEX holds your funds and matches trades on an internal ledger, usually after KYC. A DEX never takes custody; trades settle on-chain against liquidity pools or an on-chain order book. CEXs carry company and custody risk, DEXs carry smart-contract and price-impact risk.

Are DEXs safe to use?

They remove custody risk but not every risk. Stick to audited, well-known DEXs, check the token contract you are buying, keep slippage tight, and revoke token approvals you no longer need.

JewelSwap Crypto Glossary · educational, not financial advice. Updated 2 October 2026. Browse the full glossary.

About the author.

Co-Founder at JewelSwap & CMO at iDenfy. Viktor brings his successful track record of superb development & project management.