DeFi
Financial services rebuilt as code on public blockchains — how they work and how they break.
- 6 explainers
- 39 sources cited
Start with
What is DeFi?
Financial services run by smart contracts: how they work, who controls them and where the risks hide.
Decentralized exchanges and AMMs explained
How a pool and a formula replace the order book — and why big trades get worse prices.
The main risks of DeFi
Exploits, oracle attacks, bridges, liquidations, governance and scams — and how to cut your exposure.
How DeFi lending and borrowing work
Pools, collateral, health factor and liquidation — the mechanics behind on-chain loans.
What does the DeFi section cover?
DeFi means financial services run by smart contracts on public blockchains rather than by a bank or broker. ethereum.org presents it as an open alternative to traditional finance for lending, saving and trading. These explainers take each building block apart: how a decentralized exchange prices a swap, how lending pools set rates and liquidate loans, where liquidity providers’ returns and losses come from, and how oracles bring outside prices on-chain.
What is a sensible reading order?
- What is DeFi?
- How do decentralized exchanges work?
- Liquidity pools and impermanent loss
- How do DeFi lending and borrowing work?
- What is a blockchain oracle?
- What are the main risks of DeFi?, last, because it draws together the failure modes of every earlier page.
How does DeFi break?
- Code exploits. A contract does exactly what its code says, including things its authors did not intend. The US Treasury’s 2023 risk assessment of DeFi describes thefts that exploit smart contract vulnerabilities and flash loan attacks.
- Bad data. Lending markets rely on price feeds; the oracle explainer shows why a wrong price can trigger liquidations.
- Fraud and weak controls. The same Treasury assessment lists rug pulls among DeFi scams and found that many DeFi services do not apply anti-money-laundering controls.
- No safety net. ethereum.org acknowledges that Ethereum products, like any software, can suffer bugs and exploits, and the FDIC lists crypto assets among the products its deposit insurance does not cover.
Sources for this guide
- What is DeFi?, ethereum.org (accessed 13 October 2026)
- Illicit Finance Risk Assessment of Decentralized Finance, US Department of the Treasury, April 2023 (accessed 13 October 2026)
- Understanding Deposit Insurance, FDIC (accessed 13 October 2026)
Every explainer in DeFi
Liquidity pools and impermanent loss
Why a liquidity provider can trail a simple hold — with the numbers for every price move.
What is a blockchain oracle?
How prices and other outside data reach smart contracts — and what happens when they are wrong.
Terms used in this section
Glossary A–Z- APR vs APY
Simple rate versus compounded yield, with the official formula and a worked example.
- Depeg
When a stablecoin slips from $1: causes, the 2023 USDC case and the UST collapse.
- Gas fee
What you pay to get an Ethereum transaction processed, with the formula worked through.
- Rug pull
When project creators raise money and disappear with it — how it works and the warning signs.
- Slippage
Why a swap fills at a different price than quoted, and how slippage tolerance limits it.
Other layers of the stack
All sectionsCrypto Basics
What crypto is, how blockchains and wallets work
8 explainersNetworks & Ecosystems
Bitcoin, Ethereum, Solana, layer 2s and smart contracts
9 explainersStablecoins & Payments
How dollar-pegged tokens work and where they break
7 explainersMarkets & Macro
Inflation, interest rates, ETFs and how markets move
7 explainersSecurity & Privacy
Keys, wallets, scams and account protection
6 explainersMining, Staking & Infrastructure
Consensus, mining, staking, nodes and bridges
12 profilesAsset Profiles
Fact files on major crypto-assets: what they are, who runs them, key dates and risks — no live prices





