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.
- On a DEX the coins stay in your wallet, but there is no support and no undoing mistakes.
- Check the coin's contract address, keep slippage low and revoke old approvals.
- A liquidity provider's income is not a deposit: when the price moves a lot, the pool lags simple holding.
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.
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
- Your own wallet that works with the right network: BNB Chain for PancakeSwap, Ethereum for Uniswap. Keep the seed phrase on paper only — see “How not to lose your crypto”.
- The network's coin to pay the fee (called gas): BNB on BNB Chain, ETH on Ethereum. Without it no transaction goes through, even if the wallet holds other coins.
- Coins to swap. They are usually bought on a large exchange first and withdrawn to your wallet — on the same network as the DEX.
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
- 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.
- Connect the wallet with Connect Wallet and check the right network is selected.
- Choose what you give and what you get. The exchange works out the other side.
- 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.
- Check the details: the rate, price impact, the minimum you will receive and the network fee. Then press Swap and confirm in the wallet.
- 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.
- For large coins and stablecoins a fraction of a percent is usually enough.
- A high tolerance is a gift to bots: they see your order, buy right before you and sell to you higher (a “sandwich” attack).
- If a trade only goes through at 10–20% tolerance or more, that is a reason to stop, not to move the slider.
Where people lose money on a DEX
- Fake tokens. Anyone can issue a coin with any name and logo — that is the point of an open system. Check the coin's contract address against the project's official website, not the name in the list.
- A coin you can buy but cannot sell. Some token code blocks selling or charges a huge tax on it. From the outside it looks like a rising chart.
- The creator takes the pool (rug pull). The coin's author puts it into a pool, people buy — and the author withdraws everything they paid. The price falls to almost zero within minutes.
- Unlimited approvals. The approval from step 4 is often given with no amount limit. If the contract turns out to be malicious or gets hacked, it can take that coin. Old approvals are revoked in the wallet or in the block explorer's token approvals section.
- Smart contract bugs. Even well-known protocols have had vulnerabilities. The code is open, but there is no insurance and no support.
- Network fees. At busy times on Ethereum they can eat a noticeable part of a small trade.
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.
- “Farming” is when the platform also pays you in its own tokens for being in a pool. A high annual yield on screen often rests on those tokens; their price can fall, and the yield with it.
- The more exotic the pair and the higher the promised rate, the higher the risk — of a fake token, of the creator leaving, of the reward price falling.
- Income from swaps and rewards is taxed in most countries — check the rules in your country.
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
- The site is opened from a bookmark, the address checked.
- The wallet is on the right network and holds the coin for fees.
- The coin's contract address matches the project's official website.
- Price impact is a fraction of a percent, slippage no higher than 1%.
- The first swap is a small amount.
- Old approvals are revoked when you are done.
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.
A short useful post every morning (in Russian and English) — in the channel. Questions and course reminders — in the bot.
Primary sources behind this guide. Checked on November 27, 2026.