Decentralized Finance (DeFi)
Financial primitives, such as lending, trading and derivatives, implemented in contracts instead of institutions.
Basically
DeFi lets you use financial apps on a blockchain without banks or other traditional intermediaries. You can lend, borrow and trade through software that follows set rules.
Key Takeaways
- Decentralised finance (DeFi) replaces banks, brokers and exchanges with smart contracts on public blockchains, so you can lend, borrow, trade and more without intermediaries.
- Composability is DeFi's defining property: protocols act as building blocks ("money legos") that developers can stack together permissionlessly, creating complex financial products from simple primitives like DEXs, lending protocols and liquidity pools.
- DeFi carries significant risks: smart contract exploits, oracle manipulation, liquidation cascades and evolving regulation mean you must understand the trade-offs between transparency and security.
What Is Decentralised Finance (DeFi)?
Decentralised finance, commonly known as DeFi, is an umbrella term for financial services built on public blockchains that operate without centralised intermediaries. Instead of relying on banks, brokerages or clearinghouses to facilitate transactions, DeFi uses smart contracts: self-executing programs deployed on blockchains like Ethereum, Solana and, increasingly, Bitcoin. These contracts enforce rules automatically, replacing the trust traditionally placed in institutions with verifiable code.
The DeFi ecosystem recreates nearly every function of the traditional financial system: lending and borrowing (Aave, Compound), token exchange (Uniswap, Curve), derivatives trading (dYdX, GMX), insurance (Nexus Mutual) and asset management (Yearn Finance). DeFi differs not just in its technology but in its access model: anyone with an internet connection and a crypto wallet can participate, without applications, credit checks or minimum balances.
DeFi grew rapidly from its emergence around 2018-2020. By 2026, the ecosystem holds roughly $90-140 billion in total value locked (TVL) across protocols, with Ethereum accounting for approximately half of global DeFi TVL. The sector has experienced dramatic cycles of growth and contraction, but it has established itself as a permanent layer of the crypto economy.
How It Works
DeFi applications run on public blockchains where anyone can inspect the code, verify balances and interact with protocols directly. The core mechanism is the smart contract: a program that holds funds and executes financial logic according to predefined rules.
No administrator approves transactions, no bank holds custody and no broker collects a spread. The blockchain itself provides the settlement layer, with finality determined by the underlying consensus mechanism.
Core Building Blocks
DeFi uses a set of composable primitives, with each one handling a specific financial function. These primitives form the basis for more complex financial products.
Composability: The Money Legos Effect
Composability is the property that distinguishes DeFi from traditional finance. Because smart contracts on public blockchains are permissionless, any protocol can call any other protocol within a single transaction. Developers can therefore combine existing building blocks to create entirely new financial products without anyone's approval.
A single smart contract offers a practical example: it can borrow DAI from Aave, swap it for ETH on Uniswap, deposit that ETH into a Lido staking contract and use the resulting stETH as collateral on another lending protocol. Every step happens atomically, so every step succeeds or the entire transaction reverts. No traditional financial system can coordinate across institutions in a single, instant operation.
Composability explains why the ecosystem is often called "money legos." Each protocol is a standardised block that snaps onto others. The approach drives rapid innovation, but it also creates systemic risk: a vulnerability in one foundational protocol can cascade through every application built on top of it.
Flash Loans: A DeFi-Native Primitive
Flash loans illustrate the power of composability. A flash loan lets you borrow millions of dollars with zero collateral, execute a series of operations and repay the loan, all within a single atomic transaction. If the loan is not repaid by the end of the transaction, the entire sequence reverts as if it never happened.
Flash loans enable legitimate use cases like arbitrage (equalising prices across DEXs), collateral swaps and self-liquidation. Attackers have also weaponised them in exploits, using borrowed funds to manipulate prices or governance votes before profiting and repaying the loan in a single block.
DeFi vs. CeFi vs. Traditional Finance
DeFi sits alongside centralised finance (CeFi) and traditional financial institutions (TradFi). Comparing the three models shows where DeFi differs.
The collapse of centralised crypto platforms like FTX in 2022 underscored DeFi's core value proposition: protocols that operated transparently on-chain continued functioning normally while opaque centralised entities failed. Aave and Uniswap processed transactions throughout the crisis without interruption.
DeFi on Bitcoin
Ethereum pioneered DeFi, but a growing ecosystem of Bitcoin-native DeFi, often called BTCFi, is emerging. Bitcoin's scripting language is intentionally limited compared to Ethereum's Turing-complete smart contracts, so BTCFi relies on Layer 2 networks and sidechains to add programmability.
Bitcoin DeFi uses several key approaches. Each approach adds financial functionality while building on Bitcoin.
BTCFi remains smaller than Ethereum DeFi. BTCFi TVL across Layer 2s contracted significantly in early 2026, settling around 91,000 BTC. The broader trend is clear: Bitcoin is evolving beyond a store of value into a base layer for financial applications, with protocols like Spark enabling stablecoin payments and instant transfers natively on Bitcoin infrastructure.
Lending and Borrowing
Lending protocols are the backbone of DeFi. Users deposit crypto assets to earn interest, while borrowers post overcollateralised positions to access liquidity without selling their holdings. Interest rates adjust algorithmically based on supply and demand in real time, with no human underwriting.
Decentralised Trading
Decentralised exchanges allow you to swap tokens directly from your wallet. Automated market makers (AMMs) like Uniswap use liquidity pools instead of order books, with prices determined by a mathematical formula. This model enables trading for any token pair without requiring a centralised counterparty.
Stablecoin Infrastructure
Stablecoins are DeFi's primary medium of exchange. Fiat-backed stablecoins like USDC and crypto-collateralised stablecoins like DAI provide price stability within an otherwise volatile ecosystem and serve as the unit of account for lending rates, trading pairs and cross-border transfers. The stablecoin payment rails emerging from DeFi are beginning to compete with traditional payment rails for cross-border settlement.
Dollar-Denominated Savings
DeFi offers dollar-denominated savings through stablecoin lending and yield-bearing stablecoins for users in countries with volatile currencies or limited banking access. A user in a high-inflation economy can hold USDC in a self-custodial wallet, earn yield through DeFi protocols and access their funds 24/7 without a bank account. These services are among DeFi's most impactful real-world applications.
Smart Contract Risk
Every DeFi protocol is only as secure as its smart contract code. Bugs, logic errors and unforeseen interactions can lead to catastrophic losses. In 2024 alone, DeFi protocols lost over $1.4 billion to exploits, including the Radiant Capital hack (October 2024, $53 million lost through compromised multisig access) and multiple flash loan attacks that drained protocols by manipulating vulnerable price calculations.
Even audited protocols are not immune. Audits reduce risk but cannot guarantee safety, especially when multiple audited contracts interact in ways auditors did not anticipate.
Oracle Manipulation
DeFi protocols depend on oracles to deliver accurate price data. An attacker who manipulates an oracle's price feed can trigger false liquidations, borrow against inflated collateral or drain lending pools. In May 2025, an attacker exploited the Dexodus Finance protocol by reusing stale oracle signatures to set an artificially low ETH price, extracting funds before anyone could respond.
Liquidation Cascades
Sharp market downturns cause collateral values to drop across many positions simultaneously. The drop triggers automated liquidation cascades: forced selling that pushes prices even lower and triggers further liquidations. The KelpDAO exploit in April 2026 triggered a chain reaction that saw over $13 billion in TVL drain from DeFi protocols within 48 hours, with Aave alone losing $8.45 billion in deposits.
Regulatory Uncertainty
DeFi regulation continues to evolve, with the EU's MiCA regulation imposing compliance requirements on crypto-asset service providers and the transitional period ending in July 2026. Over 47% of European DeFi projects have shifted to fully decentralised governance models to navigate these requirements. In the United States, the SEC and CFTC have been coordinating through "Project Crypto" since early 2026, though the regulatory framework for truly decentralised protocols remains unclear.
Composability Risk
The same composability that powers DeFi innovation also creates systemic fragility. When protocols are deeply interconnected, a failure in one can cascade through the entire stack. A stablecoin depeg, protocol insolvency or oracle failure can propagate across every protocol that integrates the affected component.
Why It Matters
DeFi represents a fundamental shift in how financial services are built and accessed. By replacing institutional trust with transparent code, it opens financial services to anyone with a wallet, regardless of geography, wealth or documentation status. The infrastructure being built in DeFi (stablecoin rails, instant settlement, programmable money) is increasingly converging with traditional finance, as institutions adopt on-chain settlement and TradFi-DeFi convergence accelerates.
For the Bitcoin ecosystem specifically, DeFi is expanding what Bitcoin can do beyond simple transfers. Protocols like Spark bring DeFi capabilities, including stablecoin transfers, instant settlement and programmable payments, to Bitcoin's security model without requiring users to bridge to another chain. As BTCFi matures, the line between Bitcoin as a store of value and Bitcoin as a financial platform continues to blur.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.