Principais pontos
- Most popular decentralised exchanges use an automated market maker model, where trades execute against a shared liquidity pool instead of a matched order book.
- Liquidity providers deposit matched pairs of assets into a pool and earn a share of trading fees, while the pool's formula automatically adjusts prices as trades occur.
- Slippage grows with trade size relative to a pool's depth, which is why the same trade can cost noticeably more in a thin pool than in a deep one.
- Impermanent loss affects liquidity providers when the two pooled assets move in price relative to each other, and it only becomes a realised loss upon withdrawal.
- Trading through a decentralised exchange keeps funds in your own wallet until the moment of the trade, which removes custodial risk but shifts security responsibility onto you.
A decentralised exchange lets people trade crypto assets directly from their own wallets, without depositing funds onto a company’s platform first. Most of today’s decentralised exchanges run on a design called an automated market maker, which is meaningfully different from how a traditional order book exchange works.
Order Books vs. Automated Market Makers
Centralised exchanges, and some decentralised ones, use an order book: a live list of buy and sell orders at different prices, matched against each other as they align. This is the same basic model used by traditional stock exchanges, and it works well when there are enough active traders placing orders to keep the book deep and prices tight.
Most popular decentralised exchanges, including Uniswap, instead use an automated market maker, or AMM, model. Rather than matching individual buyers and sellers, an AMM lets people trade against a shared pool of pre-deposited funds, with prices set by a formula based on the ratio of assets in that pool rather than by a live order book. This means a trade can execute instantly against the pool itself, without needing another trader to be online and willing to take the other side at that exact moment.
How Liquidity Pools Work
A liquidity pool is the shared reserve of two, or sometimes more, assets that an AMM trades against. Anyone can typically become a liquidity provider by depositing a matched value of both assets into the pool, and in return they generally earn a share of the trading fees paid by people swapping through that pool. The pool’s pricing formula automatically adjusts the exchange rate as trades shift the ratio of assets held inside it, which is what allows the pool to keep functioning without a centralised market maker actively managing prices.
This design is powerful because it lets essentially any token be traded the moment someone creates a pool for it, but it also means a pool’s depth, meaning how much value it holds, directly affects how much a given trade will move the price.
Slippage: Why the Price You See Isn’t Always the Price You Get
Slippage is the difference between the price you expected when you submitted a trade and the price you actually received once it executed. In an AMM, slippage happens because a trade itself shifts the ratio of assets in the pool as it executes: a larger trade, relative to the size of the pool, moves the price more, so the last portion of a large trade fills at a worse rate than the first portion. Thinly traded pools, where the pool holds relatively little value, tend to produce more slippage for the same trade size than deep, heavily used pools.
Most decentralised exchange interfaces let you set a maximum slippage tolerance before confirming a trade, which cancels the transaction if the price moves against you by more than you are willing to accept. Setting this too loose can mean a worse fill than expected; setting it too tight in a fast-moving or thin market can mean your transaction repeatedly fails to execute at all.
Impermanent Loss
Impermanent loss is a risk specific to liquidity providers, not traders. It occurs when the two assets in a pool move in price relative to each other after you deposit them. Because the pool’s formula automatically rebalances the ratio of assets as trades happen, a liquidity provider ends up holding relatively more of whichever asset became less valuable and relatively less of whichever asset became more valuable, compared with simply holding the original two assets separately without depositing them.
The word impermanent reflects the fact that this gap shrinks or disappears if the relative prices move back toward where they were when you deposited; it only becomes a permanent, realised loss once you withdraw from the pool while that price divergence still exists. In practice, trading fees earned as a liquidity provider are meant to help offset this risk, but they do not always fully make up for it, particularly in pools pairing two assets whose prices tend to move quite differently from one another. As a general illustration only, and not a real trade: picture depositing into a pool holding two assets of equal value at the time of deposit. If one of those assets then rises considerably in price relative to the other, a liquidity provider will typically end up with less upside than someone who had simply held both assets separately, purely because of how the pool automatically rebalanced along the way. This is not financial advice, and actual outcomes depend heavily on which specific assets and pool you are looking at.
Self-Custody Trading: What You Gain and What You Take On
Trading on a decentralised exchange generally means you retain control of your funds in your own wallet until the moment of the trade, rather than depositing them onto a company’s platform in advance. This removes a category of risk that comes with trusting a centralised platform to safeguard customer funds and honour withdrawals. It also means the responsibility for wallet security, verifying you are interacting with the genuine contract for a given exchange, and avoiding malicious approvals shifts entirely onto you. There is generally no customer support line and no institution able to reverse a mistaken transaction. Approving a token for spending by a smart contract, a routine step before most swaps, is itself worth understanding rather than clicking through automatically, since an approval can in principle be used by a malicious or compromised contract to move more of that token than you intended.
The Bottom Line
Decentralised exchanges built on the AMM model let people trade directly from their own wallets against shared liquidity pools rather than a live order book, which is what makes it possible to trade almost any token instantly. That convenience comes with its own mechanics worth understanding: slippage grows with trade size relative to pool depth, and liquidity providers take on impermanent loss risk in exchange for a share of trading fees. Self-custody removes reliance on a centralised platform but places the full weight of security and diligence on the individual trader. This is not financial advice; understanding how the specific pool you are using actually works is a reasonable first step before committing meaningful funds to it.
The story
Decentralised exchanges let people trade tokens directly from their own wallets by swapping against shared liquidity pools instead of matching orders on a live order book, which is what makes it possible to trade almost any token instantly.
The context
This design trades one set of frictions for another. It removes the need to trust a centralised platform with custody of funds, but it introduces slippage and impermanent loss as real, structural costs that traders and liquidity providers need to understand, in place of a human market maker actively managing the book.
Worth watching: how deep a pool is relative to the size of trade you intend to make, what a given exchange's typical trading fees are, and how the specific assets you are pairing tend to move relative to each other if you are considering providing liquidity.
A Abertura is reasoning and data from the Bitcoin Digital Editorial team — context, not a buy or sell call. Not financial advice.
Sources
Perguntas frequentes
Do I need an account to use a decentralised exchange?
No. Most decentralised exchanges only require connecting a compatible crypto wallet; there is typically no sign-up, identity verification, or deposit step involving the platform itself. You interact with the exchange's smart contracts directly, and your funds stay in your own wallet until you actually confirm a trade.
Why did my trade execute at a worse price than shown?
This is most likely slippage: the price moved between when you submitted the trade and when it executed, or the trade itself was large enough relative to the pool to move the price as it filled. Checking your slippage tolerance setting and the pool's overall depth before trading can help you understand what kind of price movement to expect.
Can I lose money just by providing liquidity, even without trading?
Yes, through impermanent loss, which happens when the two assets in a pool you provided liquidity to move in price relative to one another. Trading fees earned as a liquidity provider can help offset this, but they are not guaranteed to fully cover it, particularly for pools pairing assets with very different price behaviour. This is not financial advice; research a specific pool's typical fee income and asset pairing before providing liquidity.
Is a decentralised exchange safer than a centralised one?
It depends what kind of risk you are comparing. A decentralised exchange removes the risk of a company mishandling or losing custody of your funds, since you keep control of them until the trade itself. But it shifts responsibility onto you for wallet security and verifying you are using the genuine contract, and smart contract bugs remain a real risk. Neither model eliminates risk; they distribute it differently.
What happens if a liquidity pool has very little money in it?
A thinly funded pool tends to produce more slippage for a given trade size, since a smaller trade makes up a larger share of the pool and moves the price more. It can also make the pool a less attractive place to provide liquidity, since fee income is generally lower, and a less liquid pool can be easier to manipulate. Checking a pool's depth is a reasonable step before trading or providing liquidity in it.
Editora com vasta experiência na cobertura de Bitcoin, inovação em blockchain, mercados de criptomoedas e tecnologia financeira. Apaixonada por oferecer notícias oportunas, análises aprofundadas e conteúdo educativo para a comunidade cripto global.
