DeFi & Stablecoins

Stablecoins, exchanges without order books, liquidity pools and on-chain lending — how each mechanism works, and where it can break.

Rippling blue water in a swimming pool
DeFi & Stablecoins· 8 min read

Liquidity pools and impermanent loss, explained with real arithmetic

Putting two tokens into a pool earns a share of trading fees — but the pool quietly sells whichever token is rising. Here is exactly how much that can cost, using the standard constant-product formula that Uniswap’s documentation also quotes.

9 sources · 9 primary
Padlocks of many colours locked onto a bridge railing above water
DeFi & Stablecoins· 7 min read

What is TVL in crypto? Total value locked, explained honestly

TVL is the headline number of DeFi: the dollar value of everything deposited in a protocol. It is useful for sizing things up — and easy to misread. Here is how it is built and where it misleads.

5 sources · 3 primary

Metrics and terms for this topic

Open-air flea market with stalls under shady trees
Glossary· 2 min read

DEX (decentralized exchange)

A DEX is an exchange made of smart contracts. You trade straight from your wallet, usually against a pool of tokens rather than another person’s order.

6 sources · 6 primary
Water being poured into a glass with ice
Glossary· 2 min read

Liquidity

Liquidity describes how easily you can buy or sell something at a fair price. In DeFi, the word also means the tokens people deposit into pools so others can trade.

4 sources · 4 primary
Yellow caution sign warning of a slippery wet floor
Glossary· 3 min read

Slippage

Slippage is the gap between the price you were shown and the price you actually got. It is usually small in busy markets and can be large in thin ones.

7 sources · 7 primary
Close-up of a US one-dollar coin
Glossary· 2 min read

Stablecoin

A stablecoin is a crypto token that tries to stay worth a fixed amount, almost always one US dollar, while moving on a blockchain like any other token.

7 sources · 7 primary
Small gift boxes wrapped in coloured paper and ribbons
Glossary· 2 min read

Wrapped token

A wrapped token is a stand-in: it represents another asset in a format a particular blockchain or app can use, while the original is held somewhere else.

4 sources · 4 primary

Other topics

Tightly packed links of heavy metal chain
Topic

Blockchain Basics

Blocks, transactions, keys and fees: the moving parts every other topic builds on.

Tall stacks of gold-coloured coins on a dark table
Topic

Bitcoin

Supply schedule, mining, difficulty, Lightning and spot ETFs.

Three-dimensional rendering of the blue Ethereum diamond logo
Topic

Ethereum

Accounts, gas, staking, the fee burn and layer-2 rollups.

Magnifying glass held over banknotes and a map
Topic

On-Chain Analysis

How analysts turn public ledger data into cost-basis, holder and flow signals — and where that breaks.

Busy trading hall of an exchange seen from the gallery
Topic

Market Structure

Spot versus derivatives, funding rates, open interest, liquidations and order books.

Silhouette of a roller coaster's loops against a cloudy sky
Topic

Investing Fundamentals

Risk, volatility, diversification, position sizing and market cycles for crypto beginners.

Rows of numbered safe-deposit boxes along a vault wall
Topic

Security & Scams

Custody choices, seed phrases, hardware wallets and the scams that target new users.

What will you learn about DeFi and stablecoins here?

Decentralized finance, or DeFi, replaces some of the jobs that banks and brokers do with smart contracts that anyone can use from their own wallet. Stablecoins are the tokens much of that activity is priced in. Both are easier to understand as mechanisms than as products: a formula that sets a swap price, a pool that rebalances itself, a loan that is liquidated automatically, a peg that holds only while traders have a reason to defend it. This section explains each mechanism with worked arithmetic computed in code, and spends as much time on failure points as on how things are meant to work.

Where should you start?#

Stablecoins come first because most DeFi activity is priced in them. Read the guides in this order:

  1. What are stablecoins? — how “digital dollars” work, who stands behind them, and where they can fail.
  2. How do stablecoins keep their peg? — arbitrage, collateral and confidence, and the point where each one gives way.
  3. How decentralized exchanges work — pools, prices and the constant-product formula.
  4. Liquidity pools and impermanent loss — what providing liquidity earns, and what it can quietly cost.
  5. How DeFi lending works — collateral, the health factor and automatic liquidations.
  6. What is TVL in crypto? — how total value locked is built, and where it misleads.

How does this topic connect to the rest of the site?#

The stablecoin, DEX, slippage and wrapped token glossary entries define the terms you will meet most. The stablecoin supply ratio profile shows how analysts compare Bitcoin’s size with the stablecoin supply. Because DeFi runs on smart contracts, the Ethereum section and the guide to token approvals and wallet drainers are worth reading alongside this one.

Frequently asked questions#

Is a stablecoin the same as a dollar in the bank?

No. A stablecoin is a token that tries to stay worth a fixed amount, and whether it does depends on its issuer, its reserves or its mechanism. “Stable” is a goal, not a promise. The peg guide shows where each design can fail.

What is impermanent loss?

It is the gap between what you hold after providing liquidity to a pool and what you would have held by simply keeping the two tokens. It arises because the pool sells whichever token is rising. The liquidity pools guide works through the arithmetic.