VEYRNOX · Learn · DEX

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

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.

Learn more →