What Is DeFi (Decentralized Finance)?
DeFi (Decentralized Finance) refers to financial services built on blockchain networks using smart contracts — self-executing programs — rather than banks, brokers, or exchanges. DeFi protocols enable lending, borrowing, trading, and yield generation without a central intermediary, and anyone with a compatible wallet can interact with them directly.
How DeFi Protocols Work
At the core of DeFi is the smart contract — code deployed on a blockchain (most commonly Ethereum, but also Solana, Avalanche, and others) that executes automatically when predefined conditions are met. A lending protocol, for example, is a smart contract that accepts collateral deposits and issues loans according to rules coded into it — interest rates adjust algorithmically based on supply and demand with no human loan officer involved. Because the code is deployed on a public blockchain, anyone can audit it, and transactions are settled on-chain without needing a counterparty to trust.
Decentralized exchanges (DEXes) use a mechanism called an automated market maker (AMM) instead of a traditional order book. Users deposit pairs of tokens into liquidity pools; a mathematical formula (most commonly x × y = k) determines the exchange rate between them based on the pool's current ratio. Traders swap against the pool rather than against other traders, and liquidity providers earn a share of the trading fees generated. This model enables trading of long-tail tokens that would never appear on centralized exchanges, and keeps markets running 24/7 without a matching engine or clearing house.
A frequent misconception is that "decentralized" means fully trustless and safe. In practice, many DeFi protocols have admin keys, governance structures, or upgradeability mechanisms that introduce meaningful centralization and counterparty risk. The term covers a wide spectrum — from protocols where code is truly immutable and no one can change it, to projects where a small team controls an admin multisig that can drain funds. Understanding which category a protocol falls into is essential before committing capital.
Key Points
- DeFi removes intermediaries by replacing them with smart contracts — the protocol's rules are transparent, always-on code, not a company's policies.
- Core DeFi categories include decentralized exchanges (DEXes), lending and borrowing protocols, stablecoins, derivatives, and yield aggregators.
- Smart contract bugs are the dominant risk: audits reduce but do not eliminate this risk, and no DeFi deposit is covered by deposit insurance.
- DeFi transactions are irreversible. Sending funds to the wrong address or approving a malicious contract cannot be undone by a customer support team.
Learn More
DeFi encompasses a wide range of protocols and strategies that each carry their own risk/return profiles. See DeFi and Yield Farming for a complete walkthrough of how lending protocols, DEXes, liquidity pools, and yield strategies work — and how to assess the risks of each.
Related answers: How Does Crypto Staking Work? · What Is a Blockchain? · Browse all questions
Related Questions
What are the risks of using DeFi protocols? DeFi carries several distinct risk categories: smart contract bugs that can be exploited (with no recourse), impermanent loss for liquidity providers when asset prices diverge, oracle manipulation that can trigger incorrect liquidations, and liquidation risk on collateralized loans if collateral value drops below required thresholds. There is no FDIC insurance, no fraud protection, and no customer service — mistakes are generally permanent.
What is yield farming in DeFi? Yield farming is the practice of providing liquidity or capital to DeFi protocols in exchange for interest, trading fees, and governance token rewards. Advertised APYs can appear extremely high but are typically unsustainable — rates compress as more capital enters, and reward tokens can lose value rapidly. Net returns must account for smart contract risk, impermanent loss, gas costs, and tax treatment of rewards.