Decentralised Finance - DeFi (Decentralised Finance) - is the application of smart contracts to financial services. Trading, lending, borrowing, earning yield, derivatives, insurance - all reimplemented as blockchain protocols that operate without banks, brokers, exchanges, or any centralised intermediary. The appeal is significant: financial services available to anyone with internet access, operating transparently on public blockchains, with no institution that can refuse service, freeze assets, or charge opaque fees. The risks are equally significant - and the history of DeFi includes some of the largest financial losses ever recorded in the crypto ecosystem. This lesson provides the honest picture of both.
DeFi Defined
DeFi refers to financial protocols and applications built on blockchains - primarily Ethereum - that replicate or extend traditional financial services without centralised intermediaries. The defining characteristics are that it is Permissionless (no KYC, no approval required), transparent (all protocol code and transactions are public), non-custodial (users retain control of their assets throughout), and features high Composability (protocols interact with each other to create complex financial products).
The contrast with traditional finance is stark: to open a bank account, you need identity documents and approval. To access a DeFi lending protocol, you need a crypto wallet and an internet connection. The bank decides who can borrow and at what rate. The DeFi protocol applies the same rules to every participant - encoded in smart contract code that anyone can read.
The DeFi Stack
DeFi is built in layers - each layer providing infrastructure on which the next builds. The strength of the ecosystem is measured in TVL (Total Value Locked), representing the capital secured in these layers.
Layer 1 - Settlement Layer: Ethereum (or Layer 2). Provides security, finality, and transaction execution.
Layer 2 - Asset Layer: ETH, stablecoins (USDC, DAI), and other tokens.
Layer 3 - Protocol Layer: Core DeFi smart contracts like Uniswap (exchange) and Aave (lending).
Layer 4 - Application Layer: User interfaces, dApp websites, and portfolio dashboards.
Layer 5 - Aggregation Layer: Services like 1inch that scan multiple protocols for the best rates.
Key DeFi Primitives
• Decentralised Exchange (DEX): Swapping tokens directly with smart contracts without custody or intermediaries. (Uniswap, Curve).
• Lending & Borrowing: Earning interest on deposits or borrowing against locked crypto collateral. (Aave, Compound).
• Stablecoins: Assets pegged to fiat to allow a stable pricing mechanism. (DAI, USDC).
• Liquid Staking: Staking assets to secure networks while receiving a liquid token representing that stake for use in DeFi. (Lido, Rocket Pool).
• Derivatives: Synthetic assets, options, and perpetual futures contracts managed entirely on-chain. (dYdX, GMX).
DeFi vs Traditional Finance
• Access: TradFi requires identity checks and approvals. DeFi requires only an active crypto wallet.
• Custody: TradFi keeps your assets in their system. DeFi leaves control with your keys (non-custodial).
• Transparency: TradFi uses opaque internal operations. DeFi runs on open-source, public code.
• Settlement Speed: TradFi takes days to settle. DeFi completes in seconds to minutes.
• Operational Hours: TradFi operates during banking hours. DeFi is 24/7/365.
The DeFi Summer and What Followed
The summer of 2020 saw an explosion of DeFi activity - dubbed "DeFi Summer" - as Yield Farming incentives produced extraordinary short-term returns that attracted enormous capital into the ecosystem. Compound's COMP token launch in June 2020 introduced liquidity mining: rewarding users with governance tokens for depositing liquidity. TVL grew from $1 billion to over $15 billion in a few months.
The boom attracted both genuine innovation and significant fraud. Hundreds of protocols launched as simple forks of existing code with anonymous teams and no audits - designed to attract liquidity before the team absconded with deposited funds (rug pulls). The 2022 bear market, combined with the Terra/Luna collapse, reduced DeFi TVL from its peak of approximately $180 billion to under $40 billion - exposing overleveraged positions, protocol interdependencies, and the systemic risk of an interconnected ecosystem.