Decentralized Exchange
Exchange em que a negociação ocorre direto entre as carteiras dos usuÔrios via contratos inteligentes, sem um intermediÔrio custodiar os fundos.
Key points
- A decentralized exchange, or DEX, is a trading platform where swaps happen directly between users' wallets, via smart contracts.
- Unlike a centralized exchange, a DEX does not custody funds: the user keeps control of the assets until the exact moment of the swap.
- Many DEXs use liquidity pools and a mathematical formula to price swaps, instead of a traditional order book.
What is a DEX?
A decentralized exchange is a type of crypto market where trading happens without an intermediary holding the funds. Instead of depositing assets on the platform, the user trades directly from their own wallet, and a smart contract executes the swap. It is one of the pillars of decentralized finance.
How it works
Many DEXs adopt the automated market maker model. Instead of matching buy and sell orders, they maintain liquidity pools, funds with two assets deposited by users, and use a formula to set the price on each swap. When someone swaps one asset for another, the pool's proportions change and the price adjusts automatically.
Whoever provides liquidity to a pool receives a share of the fees charged on swaps. All the logic runs on public smart contracts, which eliminates the custodian but shifts the risk to the correctness of the code. Trading settles on-chain, so every operation pays the corresponding network fee.
Since there is no central registration, a DEX is usually accessible to any wallet, which widens its reach, but also shifts security responsibility entirely onto the user.
Why it matters
For a desk that needs to convert between stablecoins or access assets with little presence on centralized exchanges, a DEX offers always-available liquidity without third-party custody. It is a settlement infrastructure that runs 24 hours a day, with no trading-session hours. Even so, operating on a DEX requires familiarity with wallets and network fees, and many users combine this access with regulated services for local-currency on- and off-ramp steps.
Risks and limitations
Whoever provides liquidity is exposed to impermanent loss, when the relative price of the pool's assets changes. There is risk of smart contract failure and of low-liquidity pools, which generate high slippage. Since responsibility for the wallet lies with the user, operating mistakes and transactions sent to wrong addresses cannot be reversed.