All posts
Crypto2026/02/22Updated: By Iven W.

DEX Trading Guide: Swaps, Slippage, MEV, Approvals & Risks

Learn how DEX swaps work, how price impact differs from slippage, what approvals and MEV mean, and how to review liquidity, fees, routing, and wallet risk before trading.

A decentralized exchange (DEX) lets users exchange crypto assets through blockchain-based execution without first depositing those assets into a conventional centralized exchange account. But “DEX trading” is not one mechanism. An automated market maker, an on-chain order book, an aggregator and an intent/RFQ-style system can produce very different quotes, fees, routing paths and execution risks.

For a trader, the practical skill is not simply knowing how to click Swap. It is knowing how to verify the token and chain, read a quote, distinguish price impact from slippage, understand token approvals and signatures, account for network costs, and decide whether the available liquidity is good enough for the intended trade size.

A DEX is also not automatically “better” or “safer” than a centralized exchange. It changes the risk allocation: you may retain more direct control of assets, but you also assume more responsibility for wallet security, contract permissions and irreversible transactions.

Key takeaways

  • DEX is a market-structure category, not one universal design. AMMs, order books, aggregators and intent-based systems behave differently.
  • Price impact and slippage are different. Price impact is caused by your own trade size relative to liquidity; slippage is the difference between expected and realized execution.
  • Wallet connection is not the same as token approval. An approval or permit can authorize a contract to spend tokens, and disconnecting the website does not necessarily revoke that authority.
  • A DEX trade can involve network cost, protocol fee, price impact, slippage, routing and approval friction. Compare the complete transaction, not one headline fee.
  • MEV can worsen DEX execution. Treat it as an execution-risk factor rather than a beginner arbitrage strategy.

What is a DEX?

A decentralized exchange is a protocol or trading system that enables asset exchange using blockchain-based rules and settlement. On Ethereum and EVM-compatible networks, this commonly involves smart contracts that receive user instructions, apply protocol rules and settle the resulting token transfers on-chain.

The word “decentralized” does not mean every component surrounding the trade is equally decentralized. A user may still rely on:

  • a web interface;
  • a wallet application;
  • an RPC provider;
  • a routing service;
  • a bridge;
  • token contracts controlled by their own administrators;
  • price oracles in some products;
  • third-party fillers or solvers in intent-based systems.

The useful distinction is between the protocol/settlement mechanism and the services used to access it.

That is why a DEX risk review should ask more than “Is it non-custodial?” It should ask which contracts and services can affect the transaction and what authority each one has.

DEX vs CEX: what actually changes?

A centralized exchange (CEX) and a DEX can both provide access to crypto markets, but the ownership and execution paths are different.

QuestionTypical centralized exchangeTypical DEX workflow
Where are assets before the trade?Usually held in an exchange-controlled accountUsually remain in a wallet until the transaction executes
How is a trade authorized?Account instruction inside the platformWallet transaction and/or signature
Primary execution modelCommonly central limit order book or internal matchingAMM, order book, routing, RFQ/intent or another protocol-specific design
SettlementPlatform ledger, with later blockchain withdrawals when applicableUsually blockchain settlement or protocol-specific on-chain settlement
Main operational riskCustody, account, exchange and platform riskWallet, approval, contract, token and transaction risk
ReversibilityPlatform may sometimes intervene before withdrawal/finalityConfirmed blockchain transactions are generally not reversible by a support desk
Main cost inputsTrading fee, spread, slippage, funding/withdrawal costsNetwork cost, protocol fee, price impact, slippage, routing/bridge costs

This does not produce a universal winner. A deep CEX order book may be more efficient for one trade. A liquid DEX route with self-custody may fit another. A thin token pool can be far worse than either.

The main DEX execution models

Automated market makers (AMMs)

An AMM lets traders swap against liquidity held in pools rather than requiring one specific buyer to match one specific seller at the same moment.

The exact pricing formula varies by protocol and pool design. Constant-product pools are the classic example, while newer designs can use concentrated liquidity, custom curves, dynamic fees or hooks.

For a trader, the key consequence is simple:

your own trade can move the pool price.

The smaller the available liquidity relative to your order, the larger that price impact can become.

On-chain or hybrid order-book systems

Some DEXs expose bids and offers more like a traditional exchange. The order book, matching and settlement may be fully on-chain or split across on-chain and off-chain components.

Do not assume “DEX” automatically means “AMM.” Before comparing execution quality, identify how the venue actually matches and settles orders.

Aggregators and routers

An aggregator may search several pools or venues and choose or split a route to improve the expected result.

Routing can matter because the best direct pool is not always the best complete path. But a complex route can also involve more contracts, hops and execution dependencies.

Review the final quote, not just the aggregator brand.

Intent, RFQ and filler-based systems

Some systems let a user sign an intent or order that third-party fillers compete to execute. This can change who pays network costs, how routing occurs and how MEV exposure is managed.

Again, the label “DEX” alone does not explain the execution model. Read what you are signing and how the order will actually settle.

Price impact vs slippage: the distinction every DEX trader needs

These terms are often used as though they mean the same thing. They do not.

Price impact

Price impact is the price change caused by your own order.

If a pool has deep liquidity, a modest swap may barely change its price. If a pool is thin, the same dollar-size trade can move the pool price substantially.

The relationship is trade-specific:

  • larger trade relative to available liquidity → generally more price impact;
  • deeper liquidity → generally less price impact for the same trade;
  • concentrated liquidity can make usable depth very different at different price levels.

A high price-impact warning is not just a cosmetic UI message. It means the trade itself is materially changing the price available to you.

Slippage

Slippage is the difference between the result you expected when submitting the trade and the result you actually receive when it executes.

Market movement, competition for execution, routing changes and MEV can all contribute.

A slippage tolerance usually acts as a protection boundary: if execution becomes worse than the allowed tolerance, the transaction or order may fail rather than accepting an arbitrarily bad result.

Setting tolerance too low can create unnecessary failures. Setting it far too high can permit a much worse fill than intended.

Why both belong in the pre-trade check

Suppose a quote already shows material price impact before you submit it. Raising slippage tolerance does not solve the underlying liquidity problem. It simply allows a wider difference between the quoted and accepted outcome.

The right questions are:

  1. Is the pool or route deep enough for this size?
  2. What output is expected now?
  3. What is the minimum acceptable output?
  4. How much price impact is caused by my own order?
  5. How much additional movement am I willing to tolerate before execution?

What should you inspect in a DEX quote?

Before signing, expand the quote details rather than relying on the large “you receive” number alone.

A useful DEX quote review includes:

FieldWhat to ask
Token and chainAm I trading the intended asset on the intended network?
Contract addressIs this the canonical token contract from a trusted source?
Expected outputHow many tokens does the route currently quote?
Minimum outputWhat is the worst result permitted by the current slippage setting?
Price impactHow much is my own order moving the quoted market?
Protocol/trading feeWhat fee does the venue or pool charge?
Network costWhat is the current blockchain execution cost?
RouteWhich pools, contracts or fillers will execute the order?
Approval/permitWhat spending authority am I granting before the swap?

Ethereum's DEX-design guidance specifically treats expected output, minimum received, slippage, price impact, gas/network cost, other fees and routing as useful execution information. Those are not secondary details; together they describe the trade you are actually agreeing to.

Token approvals: the DEX risk beginners often misunderstand

Many ERC-20 workflows require the user to authorize a smart contract to transfer a token before that contract can complete a swap.

This creates several distinct actions that should not be confused:

  1. Connect wallet — allows the application to see the address and propose requests.
  2. Approve token — grants spending authority to a contract, often through an on-chain transaction.
  3. Sign a permit or order — authorizes specific data or actions using the wallet's key.
  4. Submit/settle the trade — executes or settles the intended exchange.

A connection is not automatically an approval. An approval is not automatically the swap itself.

Why approval scope matters

An approval can specify how much a contract may spend. Some systems use broad allowances for convenience; some use permit systems with additional signature-based controls and expiration rules.

The risk is not that every approval is malicious. The risk is that spending authority survives independently of the web page being open.

Ethereum's current security guidance makes the important point that disconnecting a wallet from a dapp does not remove token allowances already granted to contracts.

Practical rules:

  • verify the exact site and contract before approving;
  • read the amount and token being authorized;
  • avoid blind-signing data you cannot reasonably verify;
  • review stale or unused approvals periodically;
  • revoke an approval when its continued authority is no longer justified or when compromise is suspected.

Do not treat “wallet disconnected” as “permission removed.”

Contract address verification matters more than the token symbol

A token name and ticker can be copied. The contract address cannot be shared by two different contracts on the same chain.

Before trading a token that is not already well established in your wallet or interface:

  1. confirm the network;
  2. obtain the official contract address from the project's authoritative source when available;
  3. compare the address with the DEX quote;
  4. review liquidity and price impact;
  5. check for warnings from the wallet, interface or reputable explorer;
  6. avoid assuming that a familiar logo or ticker proves identity.

This is especially important for newly launched or thinly traded assets, where impersonation tokens can use the same name and symbol as a legitimate asset.

MEV: what DEX users need to know without becoming MEV searchers

Maximal extractable value (MEV) is value that can be extracted by controlling or influencing transaction inclusion, exclusion or ordering.

Some MEV activity can help markets stay aligned—for example, arbitrage can bring prices across venues closer together. Other forms can directly harm user execution.

Sandwiching

A sandwich attack places transactions around a user's trade in a way that can worsen the user's execution.

For the ordinary DEX user, the lesson is not “learn how to sandwich other traders.” It is:

  • large visible swaps in thin liquidity may be more exposed;
  • excessive slippage tolerance can increase the room for adverse execution;
  • route and order design can affect MEV exposure;
  • some systems use private routing, intents or fillers to reduce exposure to public-mempool ordering risks.

Ethereum's MEV documentation explicitly notes that sandwiching can leave users with increased slippage and worse execution.

DEX arbitrage is not a beginner free-profit strategy

Price differences between venues can create arbitrage. But a visible price difference is not the same as realizable profit.

A real profitability calculation may need to include:

  • pool price impact;
  • trading fees;
  • network costs;
  • CEX fees if one leg is centralized;
  • transfer or bridge costs;
  • settlement delay;
  • inventory risk;
  • failed transactions;
  • competition from specialized searchers;
  • capital and infrastructure requirements.

Do not infer an easy edge just because two screens briefly show different prices.

The full cost of a DEX trade

The economic cost of a DEX transaction can be wider than the network fee alone.

A useful decomposition is:

total execution friction ≈ protocol fee + network cost + price impact + slippage + approval/bridge costs + execution risk

Not every trade contains every item, and some components are not known exactly in advance. The purpose of the model is to prevent a common mistake: optimizing one visible fee while ignoring a larger execution loss elsewhere.

For the gas-specific mechanics—gas used, gas limit, EIP-1559 base fee, priority fee and fee caps—use the Ethereum gas fee and transaction-cost guide.

DEX liquidity is not the same as liquidity-provider strategy

A trader needs enough liquidity to execute at an acceptable price. A liquidity provider has a different problem: deciding whether supplying assets to a pool is worthwhile after fee income, price movement, range behavior, smart-contract risk and impermanent-loss/divergence effects.

Those intents should remain separate.

If your question is how liquidity pools work for LPs, including AMM mechanics and impermanent-loss risk, use the DeFi liquidity pools and yield-farming risk guide.

If your question is where current DeFi yield data is displayed and how to compare it, use the DeFiLlama yield-discovery guide.

This DEX guide stays on the trader/execution side of the pool.

Is a DEX safer than a centralized exchange?

There is no useful universal answer.

A DEX can reduce one category of exposure: you may not have to leave trading assets in a centralized exchange account before execution. But self-custody and smart-contract execution introduce other risks.

DEX-side risks

  • compromised or incorrectly backed-up wallet;
  • phishing site or malicious signature;
  • excessive or stale token approval;
  • malicious or upgradeable token contract;
  • smart-contract bug;
  • thin liquidity and severe price impact;
  • slippage and adverse transaction ordering;
  • bridge or cross-chain dependency;
  • wrong chain or wrong contract address;
  • irreversible transaction mistakes.

CEX-side risks

  • exchange custody and solvency;
  • withdrawal restrictions;
  • account access or identity-review issues;
  • platform downtime;
  • internal execution or market-structure differences;
  • jurisdiction and product-availability restrictions.

The comparison is therefore risk substitution, not “decentralized equals safe.”

A safer first-swap workflow

For a user learning DEX execution, the goal should be to understand each permission and cost before increasing size.

Step 1: Use a compartmentalized wallet

Do not make your highest-value long-term wallet the default wallet for experimenting with unfamiliar dapps.

A separate transaction wallet can limit the consequences of a bad approval, signature or site interaction. This does not eliminate risk, but it reduces the amount exposed to one mistake.

Step 2: Verify chain, token and contract

Confirm:

  • the intended network;
  • the network's native asset required for fees;
  • the exact token contract;
  • that the receiving token is the intended asset rather than an impersonator.

Step 3: Start with a liquid pair and small size

The point of a first swap is to learn the workflow, not to maximize return.

A small transaction can reveal:

  • how approval works;
  • how the wallet displays the transaction;
  • network costs;
  • quote details;
  • confirmation timing;
  • how the token appears after settlement.

Step 4: Expand the quote details

Review expected output, minimum output, price impact, protocol fee, network cost and routing.

If the price impact is already unacceptable, increasing slippage tolerance is not a fix. Reduce size, find deeper liquidity or skip the trade.

Step 5: Read the approval or permit

Confirm what contract can spend which token and how much authority you are granting.

Do not approve or sign simply because a website says the step is required.

Step 6: Confirm the final wallet request

Before signing or sending:

  • re-check the site/domain;
  • re-check token and amounts;
  • read decoded transaction/signature details when available;
  • confirm the displayed network;
  • reject unexplained or unexpected requests.

Step 7: Review the transaction after settlement

Compare:

  • quoted output versus received output;
  • expected versus actual network cost;
  • price impact shown before submission;
  • route used;
  • approvals still active.

This turns one swap into a reusable execution record rather than a click-and-forget transaction.

When a DEX may or may not fit the trade

SituationWhat to evaluate
Large trade in a deep major-asset poolCompare total DEX execution cost with available CEX liquidity and fees
Thin or newly launched tokenVerify contract, exit liquidity, price impact and scam risk before thinking about upside
Urgent risk reductionReliability and timely execution may matter more than minimizing every fee
Routine self-custody swapCheck quote, approval scope and network cost
Cross-chain tradeAdd bridge/security/withdrawal dependencies to the decision
Small trade on expensive networkNetwork cost may dominate the economics
Complex routed tradeReview every significant hop and dependency rather than relying on one headline quote

A trader does not need to use a DEX simply because DEXs exist. Understanding the mechanics is useful because it lets you recognize when the venue fits the transaction and when it does not.

How to practice the chart side without pretending to simulate a DEX

DEX execution includes on-chain state, wallet permissions, pool liquidity, routing, block inclusion and transaction ordering. A candlestick replay cannot reproduce those variables exactly.

ChartMini is best suited for lightweight historical chart replay and price-action practice. You can use the crypto trading simulator to rehearse chart decisions such as:

  • identifying a market regime;
  • marking support/resistance zones;
  • defining a trigger and invalidation point;
  • practicing breakout, pullback or range rules;
  • reviewing decision quality bar by bar.

It does not simulate a wallet, token approval, AMM pool state, gas, bridge, MEV, exact DEX route, exact fill or smart-contract execution.

For general crypto-market mechanics before choosing a venue, use the crypto trading beginner guide. For evaluating the token/project itself rather than the swap mechanics, use the altcoin due-diligence checklist.

A pre-trade DEX checklist

Before signing a DEX trade, answer these questions:

  1. Which chain am I on?
  2. Is the token contract address correct?
  3. How deep is the liquidity for my actual trade size?
  4. What price impact does my own order create?
  5. What is the minimum output under the current slippage setting?
  6. What are the protocol and network costs?
  7. What route, pool or filler will execute the trade?
  8. Am I granting an approval or signing a permit?
  9. What contract can spend my tokens, and for how long/how much?
  10. Would a CEX or another route provide better execution for this specific trade?
  11. What can go wrong if the transaction is delayed, reverted or filled worse than expected?
  12. Can I explain every wallet request before I approve it?

If any answer is unclear, the trade is not yet operationally ready.

Frequently Asked Questions

What is a decentralized exchange in simple terms?

A decentralized exchange, or DEX, is a trading system that uses blockchain-based smart contracts or related on-chain settlement mechanisms so users can exchange assets from a wallet without depositing those assets into a conventional centralized exchange account. The exact architecture varies by protocol, so AMMs, order-book systems, aggregators and intent-based systems should not be treated as identical.

What is the difference between price impact and slippage on a DEX?

Price impact is the price change caused by the size of your own trade relative to available liquidity. Slippage is the difference between the output or execution price you expected and the output or price you actually receive when the trade executes. A large trade can create high price impact even if market prices do not move after you submit it.

Does connecting a wallet give a DEX permission to spend my tokens?

Not by itself. Connecting a wallet generally lets an application read the wallet address and propose transactions or signatures. Spending ERC-20 tokens usually requires a separate approval or permit. Users should verify the protocol, contract, token, amount and duration before granting spending authority.

Is disconnecting a wallet the same as revoking a token approval?

No. Disconnecting a website from a wallet does not automatically remove an ERC-20 allowance or other token permission already granted to a contract. An unused or suspicious approval must be reviewed and, when appropriate, revoked separately through a supported wallet or approval-checking tool.

What is MEV and how can it affect a DEX trade?

Maximal extractable value, or MEV, refers to value that can be extracted through transaction inclusion, exclusion or ordering. For DEX users, harmful forms can include sandwiching or other ordering effects that worsen execution and slippage. MEV is an execution-risk factor to understand, not a guaranteed profit opportunity for ordinary traders.

Is a DEX safer than a centralized exchange?

Neither is universally safer. A DEX can reduce reliance on centralized custody, but it introduces smart-contract, token, approval, signature, liquidity, routing, network and wallet risks. A centralized exchange concentrates custody and platform risk but may offer a simpler workflow and different market structure. Compare the specific risks of the venue and transaction rather than assuming one model is always safer.

Can ChartMini connect a wallet or simulate DEX execution?

No. ChartMini is a browser-based historical candlestick replay tool for price-action practice. It does not connect wallets, approve tokens, submit on-chain transactions, query live liquidity pools, calculate live price impact, route swaps, simulate MEV, bridge assets, or reproduce exact DEX fills.

Source notes

The durable execution and security concepts in this guide were checked against current first-party documentation on 2026-08-12:

  • Ethereum.org — Maximal Extractable Value (MEV): MEV definition, DEX arbitrage context, sandwiching and user-execution effects.
  • Ethereum.org — DEX design best practices: quote information such as expected output, minimum received, slippage, price impact, gas/network cost, fees and routing.
  • Ethereum.org — How to revoke token access: token allowances persist independently from simply disconnecting a wallet.
  • Ethereum.org — How to identify scam tokens: contract-address verification and liquidity/price-impact warning signs.
  • Uniswap Labs support — Price Impact vs Price Slippage: distinction between trade-caused price impact and realized slippage.
  • Uniswap Labs support — Token approvals and Permit2: approval and signature-permit mechanics and their security implications.

Protocol interfaces and implementation details can change. Verify the current documentation of the actual DEX, wallet, network and token before signing a transaction.