Beginner Guides / Part 7 of 7

DeFi: Decentralized Finance

A beginner's guide to DeFi — how decentralized finance works, its history, main types (DEXs, lending, staking), and how to try it safely.

Beginner friendly 17 min read Part 7 of 7

What is DeFi?

DeFi is short for "decentralized finance." It's the umbrella term for financial services — trading, lending, borrowing, saving, insuring — rebuilt using smart contracts instead of banks, brokers, or exchanges. When you use a DeFi app, you're not opening an account with a company and trusting its staff to process your request. You're interacting directly with code deployed on a public blockchain, most commonly Ethereum, that runs exactly as written and settles instantly, without a human in the loop deciding whether to approve you.

A beginner should care about DeFi because it flips the basic assumptions of traditional finance. There's no application form, no credit check, no business hours, and no customer service line to call if something goes wrong — the smart contract is the counterparty, and its rules are fixed once deployed (unless the developers built in an upgrade path). That's the appeal: anyone with a self-custody wallet and some funds can lend, borrow, trade, or earn yield on their assets, 24/7, from anywhere. It's also the risk: there's no fraud department to reverse a mistake, no deposit insurance backing your funds, and the code itself can contain bugs that are exploited for real losses.

DeFi matters for a beginner mainly as a "know before you go" topic. You don't need to use it to hold or send crypto — plenty of people just buy on an exchange and hold in a wallet. But if you're curious about earning yield, borrowing against your crypto, or trading tokens that aren't listed on centralized exchanges, DeFi is where that happens, and understanding its mechanics and risks before you connect a wallet to anything is the difference between an informed first step and an expensive lesson.

INSIDE A LIQUIDITY POOLNo order book, no counterparty — you trade against a pot of tokens priced by a formula.LIQUIDITY POOLETH + USDCprice set by the formulax · y = kmore ETH bought → ETH price risesLIQUIDITY PROVIDERSDeposit both tokensEarn a cut of every tradedepositTRADERSwaps ETH for USDCin one transactionswap + feeWHERE FEES GOEvery swap pays a fee(commonly 0.3%)Fees flow back to theliquidity providers0.3%Risk to know: impermanent loss — LPs can underperform simply holding the two tokens

A Short History

The seeds of DeFi were planted with Bitcoin, which showed the world that money could move peer-to-peer without a bank. But Bitcoin's scripting language was deliberately limited, so it couldn't support complex financial logic. Ethereum changed that. It went live on July 30, 2015, introducing a blockchain where developers could write general-purpose smart contracts — small programs that hold funds and execute automatically when conditions are met (Ethereum Foundation). This programmability is what made "finance as code" possible.

Early smart-contract experiments were bumpy. In 2016, "The DAO," a decentralized investment fund built on Ethereum, was exploited for roughly $50–60 million worth of ether due to a flaw in its code, an event serious enough that it led to a contentious hard fork of the Ethereum blockchain itself (CoinDesk). It was an early, painful reminder that "the code is the contract" cuts both ways: it also means bugs are binding.

Real DeFi infrastructure began taking shape a year later. MakerDAO launched on Ethereum's mainnet in December 2017, letting users lock up ETH as collateral and mint Dai, a decentralized, dollar-pegged stablecoin, without going through a bank (Medium/Coinmonks). This is widely considered the birth of modern DeFi lending. Compound followed with its v1 lending protocol in September 2018 (UPay), and that same month Uniswap — a fundamentally new kind of exchange with no order book — launched on Ethereum mainnet on November 2, 2018, at the Devcon 4 developer conference (HackerNoon).

The moment DeFi went mainstream is now known as "DeFi Summer." In June 2020, Compound distributed its COMP governance token to users of the protocol, and the incentive to farm COMP by lending and borrowing kicked off a wave of "yield farming" across the ecosystem, pulling billions of dollars into DeFi protocols within weeks (CoinDesk). Uniswap, Aave, Curve, and others rode the same wave, and automated market makers (AMMs) — Uniswap's core innovation — became the standard model for decentralized trading. The growth phase also brought a steady stream of hacks and exploits, from bridge attacks to flash-loan manipulation, that repeatedly tested the industry's security practices. More recently, DeFi has matured around liquid staking (letting people stake ETH while still holding a tradable token representing that stake, pioneered by protocols like Lido starting in December 2020) and, beginning with EigenLayer's mainnet launch in June 2023, "restaking," which lets already-staked assets secure additional services for extra rewards (CoinDesk; Gate Learn).

Timeline

  • 2015Ethereum mainnet launches on July 30, introducing programmable smart contracts to blockchain (Ethereum Foundation).
  • 2016"The DAO" smart contract is exploited for roughly $50–60 million in ETH, leading to a contentious hard fork of Ethereum (CoinDesk).
  • 2017MakerDAO launches on Ethereum mainnet in December, introducing the Dai stablecoin and the first widely used decentralized lending system (Medium/Coinmonks).
  • 2018Compound's v1 lending protocol launches in September; Uniswap V1 launches on Ethereum mainnet on November 2 (UPay; HackerNoon).
  • 2019MakerDAO upgrades to Multi-Collateral Dai in November, accepting more asset types beyond ETH as collateral (LBank).
  • 2020Compound distributes its COMP governance token in June, sparking "DeFi Summer" and a boom in yield farming across the ecosystem (CoinDesk).
  • 2020Lido Finance launches liquid staking for Ethereum in December, letting users stake ETH while holding a liquid, tradable token (stETH) (Gate Learn).
  • 2021The Poly Network cross-chain bridge is exploited for roughly $610 million in August, one of the largest DeFi-related hacks on record, though most funds were later returned by the attacker (Reuters).
  • 2022The Ronin Bridge, used by the Axie Infinity game, is exploited for roughly $625 million in March, one of the largest crypto thefts ever recorded (CoinDesk).
  • 2023Ethereum's Shapella upgrade goes live in April, enabling staking withdrawals for the first time and making liquid staking tokens easier to redeem (DEXTools).
  • 2023EigenLayer launches its restaking protocol on Ethereum mainnet in June, letting staked ETH be reused to help secure additional networks and services (CoinDesk).
FREE — UNLOCK WITH YOUR EMAIL

Keep reading — unlock the full guide

The first three sections are free. Drop your name and email to unlock the rest of this guide instantly — we'll also send you the designed PDF edition and you'll join The CGH Brief. No spam, unsubscribe anytime.