DEX
A DEX — decentralized exchange — is an on-chain protocol that lets users swap tokens without a central operator holding funds. Uniswap, Curve, and Jupiter are DEXs; users trade directly against liquidity pools or on-chain order books.
How it works
Most DEXs are automated market makers: liquidity providers deposit token pairs into a pool, and swaps interact with the pool’s pricing curve rather than matching orders. The user signs a transaction that atomically pays in one token, receives the other, and pays a small fee to the liquidity providers. Because the swap is a single on-chain transaction, it either succeeds fully or reverts — no partial state, no counterparty risk, no custodian.
Why it matters
DEXs eliminate the custodial risk of centralised exchanges. Users trade from their own wallets; there is no exchange balance to seize, freeze, or lose to a hack. The trade-offs are gas costs, MEV exposure, and slippage on illiquid pairs. Wallet-level transaction simulation is the defence against malicious router contracts pretending to be legitimate DEXs.
Related concepts
- dApp — A dApp — decentralized application — is a frontend that interacts with smart contracts on a public blockchain.
- WalletConnect v2 — WalletConnect v2 is an open protocol that lets a wallet on one device connect to a dApp on another — most commonly a mobile wallet paired with a desktop dApp — over an end-to-end-encrypted relay.
- Transaction Simulation — Transaction simulation is a pre-signing check that runs a proposed transaction against a forked node state and reports the expected net asset change to the user before they sign.
- ERC-20 Token — ERC-20 is the Ethereum standard for fungible tokens.
Frequently asked questions
Is a DEX safer than an exchange?
It removes custody risk. It adds smart-contract risk and MEV exposure. For most users, a well-audited DEX is the safer long-term choice.
What is slippage?
The difference between the expected and executed price on a swap, caused by pool depth and other pending trades.
Do DEXs require KYC?
The protocol does not. Some interfaces overlay compliance controls; the underlying contracts remain permissionless.
In Veyrnox
Veyrnox users can swap on any DEX via WalletConnect. On AI Security Protection, unsafe DEX contracts are flagged before the swap prompt.