Learn / Crypto / Market Structure
DeFi: Lending, DEXs and Yield
What Is DeFi?
DeFi stands for decentralized finance — a broad term for financial applications built on public blockchains, most commonly Ethereum. Instead of a bank holding your funds and a company running its servers, DeFi protocols operate through smart contracts: self-executing programs stored on a blockchain that carry out transactions automatically when preset conditions are met. No customer-service desk, no approval process, no business hours.
The appeal is openness. Anyone with a crypto wallet and an internet connection can interact with these protocols directly. The tradeoff is that there is also no safety net — no deposit insurance, no regulator to call, and no way to reverse a transaction once it settles on-chain.
Lending and Borrowing Without a Bank
Traditional banks take deposits from savers and lend them to borrowers, pocketing the difference in interest rates. DeFi lending protocols replicate this idea using liquidity pools — shared pots of crypto assets supplied by users rather than by a bank. Borrowers draw from the pool; lenders earn a share of the interest paid back.
The critical difference is overcollateralization. Because smart contracts cannot run a credit check, DeFi borrowers must lock up more value in crypto than they borrow. For example, suppose a user wants to borrow $1,000 worth of a stablecoin; they might need to deposit $1,500 worth of Ethereum as collateral first. If the collateral's value falls below a set threshold, the protocol automatically liquidates it — sells it to repay the loan — without any human intervention. This mechanism is sometimes called liquidation.
Because overcollateralization is the only credit check available, DeFi lending is generally less capital-efficient than traditional lending. You must already have assets to borrow against them, which limits who benefits most from these systems.
Automated Market Makers: Trading Without an Order Book
Conventional exchanges match buyers with sellers through an order book — a live list of bids and offers. Most decentralized exchanges (DEXs) skip the order book entirely and use a model called an automated market maker, or AMM.
The most common AMM design works on a simple mathematical rule called the constant-product formula. A pool holds two tokens — say Token A and Token B — and the rule is that the product of their quantities must always stay the same. When a trader buys Token A from the pool, they add Token B, which shifts the ratio and automatically moves the price. No human market maker needed; the math does the pricing. The more tokens sitting in the pool, the less any single trade moves the price, which is why larger pools are said to have better liquidity.
Providing Liquidity — and Impermanent Loss
AMM pools need funds to work. Users who deposit tokens into a pool are called liquidity providers (LPs). In return, they receive a share of the trading fees generated every time someone swaps tokens through that pool. This is one of the main sources of yield in DeFi.
However, LPs face a risk unique to this model called impermanent loss. Because the pool's math constantly rebalances the ratio of the two tokens, an LP's deposit can end up worth less than it would have been if they had simply held the tokens separately. The loss is called "impermanent" because it only locks in when the LP withdraws — if prices return to where they started, the loss disappears. But in practice, significant price swings can make impermanent loss very real.
Suppose (as a hypothetical example) Token A doubles in price against Token B after an LP deposits both in equal value. The pool will have automatically sold some of the LP's Token A exposure as its price rose, leaving them with proportionally less of the token that appreciated. The trading fees earned may or may not offset this, depending on pool volume and the size of the move.
Where DeFi Yields Come From
When you see an annualized yield quoted on a DeFi platform, it is worth understanding exactly what is generating that number. Most DeFi yields come from one of three places:
- Lending interest: Borrowers pay interest on loans drawn from a pool. That interest flows to lenders. Rates fluctuate automatically based on how much of the pool is currently being borrowed — a concept sometimes called the utilization rate. High utilization pushes rates up to attract more lenders; low utilization pushes them down.
- Trading fees: Every swap on a DEX typically incurs a small fee (often a fraction of a percent per trade). Liquidity providers earn a proportional share of fees collected by the pool.
- Protocol token rewards: Many DeFi protocols distribute their own native tokens as additional incentives to attract liquidity. These rewards can be large when a token is new, making quoted yields look very high — but those rewards depend on the token retaining value, which is not guaranteed. Economists sometimes call this liquidity mining.
Yields in DeFi are variable, not fixed. Unlike a bank's advertised savings rate, they change continuously as supply, demand, and token prices shift. The numbers shown on any platform are a snapshot of recent conditions, not a promise. You can track live activity across the crypto market to see how sentiment affects these figures.
The Risks, Stated Plainly
DeFi removes intermediaries, but it replaces them with risks of its own. Traders and researchers typically keep several in mind:
| Risk Type | What It Means | Example |
|---|---|---|
| Smart contract bugs | Code errors that allow attackers to drain funds from a protocol | Exploits have drained hundreds of millions of dollars from protocols across the industry |
| Stablecoin depegs | A depeg occurs when a stablecoin loses its fixed value — e.g., a coin meant to equal $1 trades at $0.80 | Algorithmic stablecoins have collapsed to near zero, wiping out collateral held across linked protocols |
| Rug pulls | Developers abandon a project and withdraw the funds they control, leaving other users with worthless tokens | Common in newer, unaudited protocols with anonymous teams |
| Liquidation risk | Collateral values drop fast, triggering automatic liquidation before a borrower can act | Sharp market-wide selloffs can cause cascading liquidations across multiple protocols simultaneously |
| Gas fees | Gas fees are the transaction costs paid to use the Ethereum network. During busy periods they can be large enough to erase small gains | Fees spike during periods of high on-chain activity |
Code audits — independent reviews of a protocol's smart contracts — reduce but do not eliminate bug risk. Even audited protocols have been exploited. Because custody in DeFi is often self-managed, there is generally no recourse when things go wrong.
How DeFi Fits the Bigger Picture
DeFi is an experiment in rebuilding familiar financial services — lending, trading, earning interest — using open code instead of institutions. Its data shows up across crypto markets as yield rates, open interest in futures contracts, and on-chain volume figures that economists read as signals of broader crypto-market activity.
Understanding what the quoted numbers actually represent — where the yield originates, what the collateral requirements are, and what risks sit underneath — is the foundation for reading any DeFi-related data clearly. For broader context on the assets involved, the Cryptocurrency Complete Guide covers how these markets are structured, and the crypto volatility guide explains why conditions in DeFi can shift dramatically in short periods.
Frequently Asked Questions
What does "overcollateralized" mean in DeFi lending?
What is impermanent loss and why does it matter to liquidity providers?
Where do the high yields in DeFi actually come from?
What is a rug pull in DeFi?
Keep Reading
Ethereum is a programmable blockchain that runs self-executing code called smart contracts, allowing…
Stablecoins: Crypto's DollarsA stablecoin is a cryptocurrency designed to hold a fixed value — almost always one US dollar — by backing…
Exchanges, Wallets and CustodyCrypto exchanges are platforms where buyers and sellers trade digital assets, and they come in two main…
Cryptocurrency: The Complete GuideCryptocurrency is a category of digital assets that live on public blockchains — decentralized networks with…