A decentralised exchange, or DEX, is a cryptocurrency trading platform that operates without a central company managing order books, holding funds or requiring user accounts. Instead, trades are executed by smart contracts on a blockchain, and users trade directly from their own crypto wallets.
How a DEX works
Most modern DEXs use an automated market maker (AMM) model. Instead of matching buyers with sellers through an order book, an AMM uses liquidity pools, collections of tokens locked in smart contracts by liquidity providers.
When you trade on a DEX like Uniswap, you are swapping tokens with a pool rather than with another person. The pool's smart contract uses a mathematical formula to determine the exchange rate based on the ratio of tokens in the pool.
DEX vs centralised exchange
| Feature | DEX | Centralised exchange |
|---|---|---|
| Custody of funds | You hold your keys | Exchange holds your funds |
| KYC required | Usually no | Yes, in India |
| Available tokens | Any token on the blockchain | Curated list |
| Trading speed | Depends on blockchain | Usually faster |
| Customer support | None | Available |
| Regulation | Largely unregulated | Regulated in most jurisdictions |
Popular DEXs
- Uniswap: the largest DEX on Ethereum.
- PancakeSwap: runs on BNB Chain with lower fees.
- SushiSwap: multi-chain DEX with additional DeFi features.
- Jupiter: leading DEX aggregator on Solana.
DEXs and India
Indian users can access DEXs using a non-custodial wallet like MetaMask. No Indian exchange directly integrates with DEXs, so users typically buy crypto on a centralised Indian exchange, transfer to a personal wallet, and then use a DEX. All gains from DEX trading are taxable at 30% under Section 115BBH.
Risks
- Smart contract risk: a bug in the DEX's code can result in loss of funds.
- Impermanent loss: liquidity providers can lose value compared to simply holding the tokens.
- Front-running: bots can detect your pending transaction and trade ahead of you to profit at your expense.
- Fake tokens: anyone can create a token on a DEX, so scam tokens are common. Always verify contract addresses.
- No recourse: there is no customer support or undo button if something goes wrong.