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.

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 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.
A typical AMM-based swap looks like this:
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.
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.
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.
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.
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.
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.
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.