Guides · Crypto

Decentralized exchange (DEX): how it works and the risks

On a decentralized exchange no company holds your money and no support desk will undo a mistake. That gives you freedom — and puts all the responsibility on you.

Author: private investor at SK Invest · Updated October 3, 2026 · 9-minute read
The gist in a minute

What it is, in plain words

An ordinary crypto exchange is a company. You send it money, it keeps the coins and matches your order with someone else's.

A decentralized exchange (DEX) is a program on a blockchain, a so-called smart contract. There is no sign-up and no identity check: you connect your own wallet and swap one coin for another straight from it. Before and after the swap the coins are yours, not the exchange's.

The best known are Uniswap (on Ethereum and compatible networks) and PancakeSwap (mainly BNB Chain, as well as Ethereum and others). More on it in “PancakeSwap: what it is and how to use it”.

How it sets the price: a pool instead of an order book

An ordinary exchange has an order book: some people post buy prices, others sell prices. A DEX has none. Instead there is a liquidity pool: a reserve of two coins, say ETH and USDC, deposited by other users.

You do not look for a seller; you swap with the pool. A formula sets the price: the product of the two reserves must stay the same (x · y = k). Buy ETH and there is less ETH in the pool, so the next ETH costs more.

Example: why a big trade costs moreThe pool holds 10 ETH and 30,000 USDC, so 1 ETH ≈ 3,000 USDC. Swap 300 USDC and you get ≈ 0.099 ETH, almost at the market price (about 1% worse). Swap 3,000 USDC and you get ≈ 0.909 ETH, not 1 ETH: the price moved about 9% during the trade. This is called price impact. A teaching example, pool fee not included.

The takeaway is simple: the smaller the pool and the bigger the trade, the worse the price. In small pools of unknown coins one purchase can move the price by tens of percent.

What you need

The exchange the site author uses

Bybit is one of the large crypto exchanges: card purchases, P2P and stablecoins in one app. Crypto is high risk: only put in money you can afford to lose.

Affiliate link: if you sign up through it, SK Invest may earn a reward. Not financial advice.

Sign up on Bybit →

A swap step by step

  1. Open the exchange from a bookmark, not from a link in an ad, a chat or search results. Fake copies of DEXes are the most common way to steal.
  2. Connect the wallet with Connect Wallet and check the right network is selected.
  3. Choose what you give and what you get. The exchange works out the other side.
  4. Allow the exchange to spend the coin. On the first swap of a coin the wallet asks for a separate approval (approve; on PancakeSwap the button is called Enable). It lets the smart contract move that coin in your wallet.
  5. Check the details: the rate, price impact, the minimum you will receive and the network fee. Then press Swap and confirm in the wallet.
  6. Check the transaction in the block explorer via the link the exchange shows.

Slippage: a setting you should not max out

While the transaction waits in the blockchain queue, the price can move. Slippage tolerance is how much worse than the expected price you agree to get. If the price moves further, the swap is cancelled — and the network fee is charged anyway.

Where people lose money on a DEX

How people “earn” on a DEX — and why it is not a deposit

Anyone can put two coins into a pool and become a liquidity provider. In return they get a share of the fees from every swap in that pool. It sounds like interest on a deposit, but the risks are different.

The main one is impermanent loss. The pool itself sells the coin that went up and buys the one that went down. So when the price moves a lot, you end up with less money in the pool than if the coins had simply sat in your wallet.

Example: a liquidity provider's lossYou put 1 ETH and 3,000 USDC into a pool at a price of 3,000 USDC — $6,000 in total. ETH doubles to 6,000. Simply holding the coins, you would have $9,000. In the pool you end up with ≈ 0.707 ETH and ≈ 4,243 USDC — about $8,485, ≈ $515 (5.7%) less. If the price quadruples, the gap is 20%. A teaching example for a pool with the x · y = k formula, without fees, which win back part of the loss.

Who needs a DEX and who doesn't

If you buy bitcoin or ether for years, a DEX is not necessary: it is simpler to buy on a large exchange and keep the coins in your own wallet (see “Hardware wallet”). A DEX is needed when a coin is not listed on exchanges, when it matters not to hand coins to an intermediary, or when you use blockchain apps.

Checklist before your first swap

This guide is for education only and is not investment advice. Crypto and decentralized exchanges are high risk: you can lose the entire amount. Sources: Uniswap documentation (“How Uniswap Works”) and PancakeSwap (“How to Trade”), checked on 14 November 2026.

SK Invest on Telegram

A short useful post every morning (in Russian and English) — in the channel. Questions and course reminders — in the bot.

Sources

Primary sources behind this guide. Checked on November 27, 2026.