Skip to main content
โ† Back to History of Money & Trade samples
๐Ÿ’ฐHistory of Money & Tradeยท20 minยทSample Lesson

Code as the Bank: How DeFi Replaces Financial Middlemen

In 2021, Argentina's annual inflation topped 50%, wiping out the value of pesos in savings accounts almost as fast as people earned them. Meanwhile, halfway around the world, a college student with nothing more than a smartphone and an internet connection could lend out digital dollars and earn 8% interest โ€” no bank account, no credit check, no branch visit required. That system is called DeFi, short for decentralized finance, and in just a few years it grew from an experiment among programmers into a network holding over $100 billion in value.

What You'll Learn

- What decentralized finance (DeFi) means and how it differs from a regular bank - How smart contracts let two strangers make a deal without a lawyer or banker - Why DeFi loans require you to put up MORE money than you borrow - The real risks of DeFi: hacks, code bugs, and no government insurance

From Coins to Code: A Short History of Money's Middlemen

For most of history, if you wanted to borrow money, save money, or trade currency, you needed a trusted middleman โ€” a moneylender in ancient Mesopotamia, a Medici banker in Renaissance Florence, or a teller at a modern bank. These middlemen kept records, decided who was trustworthy enough to get a loan, and took a cut for their trouble. In 2008, a global financial crisis caused partly by banks making risky bets with other people's money led programmer Satoshi Nakamoto to publish the Bitcoin whitepaper in 2009 โ€” a way to send money without any bank at all. By 2015, a new blockchain called Ethereum went further: it let people write self-executing contracts directly into the network. That invention made DeFi possible.

How a DeFi Loan Actually Works

Imagine you own $1,000 worth of a cryptocurrency called Ether, but you need cash without selling it. On a DeFi platform like Aave or Compound, you can deposit that Ether as collateral and borrow up to about $650โ€“$750 worth of a stable digital dollar called a stablecoin. Notice the loan is smaller than your collateral โ€” DeFi platforms typically require 130% to 150% collateralization, because there's no credit score or ID to check, only the value of what you've locked up. If the price of your Ether drops too far, the smart contract automatically sells your collateral to pay back the loan, a process called liquidation. No loan officer makes that call โ€” the code does, instantly, the moment the numbers cross a preset line.

Smart Contracts: The Rules That Run Themselves

A smart contract is a program stored on a blockchain that runs exactly as written, with no company or person able to change the outcome once it starts. Picture a vending machine: you put in money, pick a code, and the machine โ€” not a cashier โ€” decides whether you get your snack. A DeFi lending contract works the same way: if collateral is deposited and conditions are met, funds are released automatically. This removes the middleman, but it also means mistakes in the code can't be quietly fixed after the fact. In 2016, a smart contract called The DAO had a flaw that let an attacker drain $60 million worth of Ether before anyone could stop it, because the code, not a manager, was in charge.

DeFi Has No Safety Net

Money in a traditional U.S. bank is insured by the FDIC up to $250,000 โ€” if the bank fails, the government pays you back. DeFi has no such guarantee. If a smart contract is hacked or a platform's code has a bug, deposited funds can vanish permanently with no company to file a complaint against.

Match each DeFi term to what it means.

Terms

Smart contract
Collateral
Liquidation
Stablecoin
TVL (Total Value Locked)

Definitions

Assets locked up to guarantee a loan gets repaid
A digital token designed to hold a steady value, often $1
Self-executing code that runs a deal automatically
The total dollar amount deposited across a DeFi platform
Automatic sale of collateral when its value drops too low

Drag terms onto their definitions, or click a term then click a definition to match.

DeFi vs. Traditional Banking: Two Systems Compared

A traditional bank checks your credit history, requires identification, and can be closed on holidays โ€” but it also insures your deposits and can reverse a fraudulent charge. A DeFi platform never closes, never asks who you are, and lets anyone with an internet connection participate โ€” but it never reverses a mistaken transaction and never insures a loss. Traditional finance relies on trusted institutions; DeFi relies on trustless code, verified by thousands of computers instead of one bank's ledger. Neither system is purely 'better' โ€” they trade human oversight for permanent, transparent rules, and each comes with different risks and freedoms.

โ“

Why do DeFi lending platforms typically require borrowers to deposit MORE collateral than the amount they borrow?

โ“

What happened with 'The DAO' smart contract in 2016?

๐ŸŽฏ

Design Your Own DeFi Safety Rule

Imagine you are advising a new DeFi lending platform. Write a one-paragraph rule for how much collateral (as a percentage, e.g. 140%) borrowers must deposit relative to their loan, and explain in 2-3 sentences why you chose that number โ€” consider how much a cryptocurrency's price could swing in a single day. Then list two real risks (from this lesson) that your rule does NOT protect against, and one sentence on why the smart contract can't fix those risks on its own.

Want to keep learning?

Sign up for free to access the full curriculum โ€” all subjects, all ages.

Start Learning Free