What is DeFi
DeFi (decentralized finance) is a blockchain-based financial system that replicates traditional financial services — lending, borrowing, trading, and earning yield — using smart contracts instead of banks, brokers, or exchanges.
DeFi (short for Decentralized Finance) refers to a collection of financial applications built on public blockchains — primarily Ethereum — that replicate and extend traditional financial services like lending, borrowing, trading, and yield generation without using banks, brokers, or other centralized intermediaries. Instead, these services run automatically on smart contracts: self-executing code that enforces rules and handles transactions autonomously.
The goal of DeFi is to create an open, permissionless, and transparent financial system accessible to anyone with an internet connection and a crypto wallet.
Core DeFi Services
Decentralized Exchanges (DEXs)
Platforms like Uniswap, Curve, and dYdX allow users to swap cryptocurrencies directly from their wallets, without registering an account. Rather than order books, most DEXs use Automated Market Makers (AMMs) — liquidity pools funded by users who deposit token pairs and earn a share of trading fees.
Lending and Borrowing
Protocols like Aave and Compound allow users to:
- Lend: Deposit crypto assets and earn interest from borrowers
- Borrow: Provide collateral (usually over-collateralized due to crypto volatility) and borrow against it
This happens without a credit check, KYC process, or bank approval — purely based on smart contract logic.
Yield Farming and Liquidity Mining
Users earn returns by providing liquidity to DEX pools or other DeFi protocols, often earning both fee revenue and additional token rewards. See yield farming.
Stablecoins
Stablecoins like DAI (algorithmically maintained by the Maker protocol) emerged from DeFi, maintaining dollar parity through over-collateralized crypto positions rather than fiat bank reserves.
The Appeal of DeFi
For the unbanked: An estimated 1.4 billion adults globally lack access to banking. Anyone with a smartphone and internet can access DeFi — no identity document, minimum balance, or credit score required.
Transparency: All smart contract code is publicly visible and auditable. Anyone can verify what rules govern a protocol.
Composability: DeFi protocols are "money legos" — they can be stacked and combined. A developer can connect a DEX, a lending protocol, and a stablecoin into a single workflow. This has created layers of complex financial products built on top of each other.
Self-custody: Users retain control of their own assets in their own wallets throughout DeFi interactions — not trusting a company with custody.
Risks of DeFi
DeFi comes with substantial risks:
- Smart contract vulnerabilities: Bugs in protocol code have led to billions in hacks. In 2022–2023, DeFi exploits resulted in $3–4 billion in losses annually.
- Liquidation risk: Borrowed positions can be liquidated if collateral value drops
- Liquidation cascades: Extreme market volatility can trigger cascades where mass liquidations drive prices even lower
- Rug pulls: Developers can drain liquidity pools in unaudited or fraudulent protocols
- Smart contract risk in multi-protocol stacks: The more protocols are stacked, the more failure points
- Regulatory risk: Global regulators are scrutinizing DeFi, and future regulations could significantly affect protocol accessibility
DeFi's Growth and Contraction
DeFi total value locked (TVL) — the dollar value of assets deposited into protocols — peaked at ~$180 billion in late 2021, then crashed to ~$45 billion by 2022 following the Terra/LUNA collapse ($40 billion wiped out in days), broader market downturn, and the FTX exchange collapse.
Despite the contraction, DeFi protocols continued operating throughout — demonstrating one of their core promises: the protocols themselves did not fail or disappear, even as centralized entities (Three Arrows Capital, Celsius, FTX) did.
By 2024, DeFi TVL had partially recovered, and activity continued across Ethereum and major Layer 2 networks and alternative chains. The technology's fundamentals remained intact even as speculative excess cleared.