By now you've seen the pattern twice. The exchange lesson mentioned marketplaces run by code instead of companies, and the Ethereum lesson showed how that's possible: smart contracts — programs that execute agreements automatically. DeFi ("decentralized finance") is what you get when people take that idea and rebuild, one by one, the things a bank does: trading, lending, borrowing, earning interest. Same services, no company in the middle.

This lesson is here so you understand DeFi, not so you rush to use it. By the end you'll see why that distinction is the whole point.

How can a bank be a program?

A bank's real product is trust. It checks who you are, decides if you're good for a loan, and stands in the middle of every transaction promising both sides it will go through. DeFi replaces that trust with two things: code (the rules execute themselves, like the vending machine) and collateral (instead of trusting you, the contract holds something of yours).

Lending is the cleanest example. A DeFi lending protocol won't check your credit score — it can't, it's a program. Instead, to borrow $100 of one token you might have to lock up $150 of another as collateral. If your collateral's value falls too close to the loan, the contract automatically sells it to make the lender whole. No application, no banker, no trust — just math holding the deal together. (If that automatic-selling mechanism sounds familiar, it should: it's the same liquidation logic from the leverage lesson, and it bites just as hard here.)

The main things built so far

The genuinely new properties: it's open to anyone with a wallet and an internet connection, it runs around the clock, every move is publicly recorded, and the pieces snap together — one protocol's output plugs into another's input, which is something traditional finance simply can't do.

Where the "yield" comes from — the question that protects you

Sooner or later, DeFi will reach you as a number: "earn 8% on your crypto." Here is the single most protective habit in this entire corner of crypto: ask where the yield comes from, and don't proceed until you can answer it. Legitimate answers exist — borrowers paying interest, traders paying swap fees, staking rewards. Those yields are usually modest, because they're real.

When the number gets big and the answer gets vague — "rewards," "the protocol's token," "early-user incentives" — the yield is usually being printed as a token whose value depends on more people arriving after you. There's an old line that fits perfectly here: if you can't see where the yield comes from, you are the yield. Several spectacular collapses, including a $40-billion one in 2022, were exactly this structure wearing a sophisticated costume.

The rest of the honest part

Everything sharp about crypto gets sharper in DeFi. The code executes bugs as faithfully as features, and contract exploits have drained billions — there's no deposit insurance and no fraud department. Anyone can deploy a protocol, which means scams can dress up as protocols, sometimes with a website prettier than the real ones. Mistakes are irreversible, and this time there's no exchange support desk even in theory. And "decentralized" is a spectrum, not a guarantee — some protocols have admin keys that can change the rules, which is one more thing checking before trusting means here.

None of this makes DeFi fake. The core protocols have processed enormous volume for years and represent some of the most interesting engineering in crypto. It makes DeFi power tools: genuinely useful, genuinely dangerous, and wrong as a first stop.

The takeaway

DeFi rebuilds financial services as smart contracts, replacing trust in companies with code and collateral. It's open, transparent, always on — and it concentrates every risk in crypto into its purest form, with yields that are only ever as real as their source. Understand it before you touch it, and if a number looks too good to need explaining, that's the explanation.