Saltar al contenido

DeFi Demystified: DEXes, Liquidity Pools & AMMs for First-Timers

septiembre 28, 2025

Decentralized Finance—better known as DeFi—is where you can trade, lend, and earn yield without ever touching a traditional bank or relying on a middleman. No accounts, no gatekeepers—just your wallet and a few smart contracts doing all the heavy lifting. If you’re just getting started, the first three concepts you’ll want to get cozy with are DEXes, liquidity pools, and AMMs. This guide breaks them down without the jargon overload.


TL;DR for the Impatient

  • DEX: A decentralized exchange. You swap tokens directly from your wallet—no login, no custodian.
  • Liquidity pools: Shared reserves of tokens that power trades on a DEX. You can add tokens and earn a cut of the action.
  • AMMs: Automated Market Makers. Instead of buyers and sellers meeting in an order book, a formula sets prices based on what’s in the pool.

What’s a DEX, Really?

At its core, a DEX (Decentralized Exchange) is just a blockchain app where you swap one token for another—like ETH for USDC—without giving up control of your wallet or assets. You connect, choose what you want to trade, see the quoted rate, and hit swap. All of it happens on-chain, governed by code.

Key traits:

  • Self-custody: You hold your keys. Always.
  • Plug-and-play: DEXes integrate seamlessly into other DeFi tools—lending, yield farming, derivatives—you name it.
  • Open to all: No registration, no KYC. Just a wallet and gas fees.

But it’s not all upside:

  • You’re on the hook for gas and wait times.
  • No undo button—mistakes are on you.
  • Prices fluctuate based on how much liquidity a pool has and how the AMM logic plays out.

Liquidity Pools: The Beating Heart of a DEX

Unlike traditional exchanges that match buyers and sellers, DEXes rely on pools of tokens. Let’s say there’s a pool with ETH and USDC. When you swap ETH for USDC, you’re adding ETH to the pool and taking out USDC. This changes the balance of the pool—and that change, in turn, affects the price.

Who adds liquidity?

Anyone, really. If you deposit both tokens in the right ratio, you become a Liquidity Provider (LP). In return, you get LP tokens that represent your share of the pool. As trades happen, swap fees (usually between 0.05% to 0.30%) are collected and distributed to LPs based on how much they contributed.

Why do LPs profit—and sometimes lose?

  • Earn: Fees from swaps. Occasionally bonus rewards (e.g., protocol tokens).
  • Lose: Impermanent loss. If the tokens’ prices shift, your share gets rebalanced, and you might end up with more of the underperformer and less of the winner.

AMMs: The Algorithm Behind the Curtain

AMMs (Automated Market Makers) ditch order books in favor of math. You’re not matching with another person—you’re trading against a formula.

The Classic—Constant Product (Uniswap v2 style)

The rule: x * y = k. That means if one token gets added, the other gets taken out to keep the product (k) constant. This simple logic ensures prices adjust with every trade. But: the bigger your trade, the more it moves the price—called “price impact.”

Smarter Liquidity—Concentrated (Uniswap v3)

Here, LPs don’t have to spread liquidity across all prices. They can target a price range, making capital more efficient. The catch? More micromanagement. If price leaves your range, your assets just sit there doing nothing.

Stable-Swap Curves (Curve-style)

These are custom-tailored for stablecoins or assets meant to stay close in value (like ETH/stETH). They keep slippage super low near the peg—ideal for stable-to-stable trades, but not built for volatile pairs.


How a Swap Actually Plays Out

  1. Connect your wallet.
  2. Quote: The DEX gives you a rate, based on current pool balances and routes across other pools.
  3. Approve (once): If it’s your first time trading a token, you’ll need to give the DEX permission to use it.
  4. Swap: You sign the transaction. Tokens are moved, balances shift, and your new asset lands in your wallet.
  5. Behind the scenes: A fee is taken, slippage happens, and MEV bots might be lurking—more on that shortly.

Should You Become an LP?

It’s tempting to “put your assets to work,” but here’s what you’re signing up for:

You earn:

  • Swap fees.
  • Sometimes token incentives from the protocol.

You risk:

  • Impermanent loss: The biggest gotcha. If prices diverge, your share gets reshuffled in a way that might underperform just holding the tokens.
  • Smart contract risk: Bugs and exploits are rare—but not nonexistent.
  • Peg risk: In stablecoin pools, if one depegs, you could end up with the bad one.

Where to start:

  • Try stablecoin pairs (like USDC/DAI) to learn the ropes with less price volatility.
  • Keep positions small, track APR vs token movement, and understand how impermanent loss really works over time.

Beginner Pitfalls: Slippage, Price Impact & MEV

Slippage tolerance: This is your personal “no thanks” line. Too tight, and your trade fails (you still pay gas). Too loose, and someone might front-run you. A safe starting point? Around 0.5% for liquid pairs.

Price impact: Larger trades skew the pool ratio and worsen your rate. Bigger pools = better execution.

MEV (Maximal Extractable Value): Bots monitor the mempool to front-run or sandwich your trade. To reduce exposure:

  • Use aggregators with MEV protection.
  • Trade via private relays (where supported).
  • Avoid peak volatility moments.

Choosing Where—and How—to Trade

Network matters: L2s are fast and cheap—great for frequent, smaller trades. On L1s, gas spikes can crush your margins, so timing matters.

DEX or aggregator? Aggregators can split your trade across multiple pools, often giving better rates and lower slippage than picking one DEX.

Token safety: Don’t trust random listings. Always double-check contract addresses—official docs or block explorers only.


Pre-Trade Safety Checklist

  • Use a dedicated DeFi wallet: Don’t mix with your savings wallet.
  • Verify token contracts: Always.
  • Read the transaction preview: Check amounts, fees, and approval targets.
  • Avoid infinite approvals: Limit them. Revoke when no longer needed.
  • Start small: A test swap saves pain later.

FAQs—Stuff Everyone Asks Eventually

Is a DEX always cheaper than a CEX?
Nope. DEXes have gas and slippage. For tiny trades or during high congestion, a CEX might actually be the better deal.

Can I lose money LP’ing, even with good fees?
Yes—impermanent loss can outpace your fee earnings if prices shift enough. It’s not “loss” until you withdraw, but the value difference is real.

Do I need both tokens to provide liquidity?
Usually, yes. Some platforms offer single-sided LP options, but they still carry similar exposure in practice.

What if a stablecoin depegs in my pool?
Bad news: traders will scoop up the “good” asset and leave you with the one that’s falling. That’s peg risk. Stick to quality assets and diverse pools.


Final Thought

DEXes let you trade directly from your wallet. Liquidity pools are what power those trades. And AMMs—those clever formulas—make the whole system tick. Start slow, stick to liquid pools, and understand the basics before diving deeper. Once you’re comfortable, DeFi opens up a world of financial tools, all without asking for your ID or your trust—just your understanding.