DeFi Protocols Explained: The Main Types and How to Choose
DeFi protocols are the financial primitives behind every dApp. This guide breaks down the main types, how each one works, the leading examples, and the trade-offs that matter when you build or integrate them.

A DeFi protocol is the on-chain logic that moves money without a bank in the loop. Strip away the marketing and a DeFi protocol is a set of smart contracts that holds funds, enforces rules, and settles transactions automatically. Understanding the main types of DeFi protocols is the difference between integrating a building block that fits your product and inheriting someone else's risk by accident.
This is a taxonomy, not a tutorial. We'll walk through the categories that actually matter in production, how each one works under the hood, the protocols that set the standard, and the trade-offs you weigh before you pick one. If you want the broader history of why decentralized finance exists at all, our explainer on the background and operating features of DeFi covers that ground.
The short version
- A DeFi protocol is on-chain logic in smart contracts that holds funds, enforces rules, and settles transactions without a bank, while a dApp is just the interface layer that sits on top of one or more protocols.
- Six categories cover most value locked on-chain today: lending, decentralized exchanges (DEXs), derivatives, yield, stablecoins, and liquid staking, and most real products combine two or three of them.
- Lending protocols run on overcollateralization: borrowers lock more value than they draw, and liquidators seize the collateral automatically once it falls past a threshold.
- DEXs replace the order book with an automated market maker (AMM), so liquidity providers earn a share of swap fees but take on impermanent loss when pool prices drift from the market.
- The highest-risk categories are algorithmic stablecoins and leveraged derivatives, where a single oracle or peg failure can spiral in one block.
- Judge a specific protocol by its total value locked (TVL), audit history, time in production, and how cleanly it composes, not by its advertised yield.
What a DeFi protocol actually is
People use "protocol," "platform," and "dApp" interchangeably, and that sloppiness causes real confusion when you're scoping a build.
A protocol is the rule set encoded in smart contracts: how collateral is locked, how interest accrues, how a swap is priced. A dApp is the interface and orchestration layer sitting on top. Several front ends can talk to the same protocol, and one product can compose many protocols into a single user flow.
That composability is the point. Each protocol exposes functions any other contract can call, so a yield app can route deposits into a lending market, which itself prices a token using an oracle, which a stablecoin relies on for its peg. This is why people call DeFi "money legos." It's also why a bug in one base layer can cascade through everything built above it.
Composability is DeFi's superpower and its biggest attack surface. Every integration you add is a dependency you now have to trust.
The main types of DeFi protocols
There's no official registry, but six categories cover the overwhelming majority of value locked on-chain today. Most real products combine two or three of them.
| Protocol type | What it does | Leading examples | Key trade-off to weigh |
|---|---|---|---|
| Lending | Pools deposits and lends against overcollateralized positions | Aave, Compound, MakerDAO | Oracle accuracy and liquidation design |
| DEX (AMM) | Swaps tokens against a liquidity pool instead of an order book | Uniswap, Curve, Balancer | Slippage on thin pools and impermanent loss |
| Derivatives | Brings perpetuals, options, and synthetic assets on-chain, often leveraged | dYdX, GMX, Synthetix | Leverage amplifies any pricing or oracle flaw |
| Yield | Auto-allocates deposits across protocols to harvest and compound returns | Yearn | Inherits the risk of every protocol it touches |
| Stablecoin | Issues tokens pegged to a stable value | USDC, USDT, DAI | Peg model matters: fiat, crypto, or riskier algorithmic |
| Liquid staking | Stakes proof-of-stake assets and issues a tradable receipt token | Lido, Rocket Pool | Slashing, receipt-token depeg, and stake centralization |
Lending protocols
Lending protocols are the closest thing DeFi has to a savings-and-loan business, minus the loan officer. Suppliers deposit assets into a shared pool and earn interest. Borrowers post collateral and draw against it. Rates float algorithmically based on how much of the pool is borrowed at any moment.
The defining feature is overcollateralization. To borrow $1,000 of USDC you might lock $1,500 of ETH. If your collateral value drops past a threshold, liquidators repay your debt and seize the collateral at a discount, which keeps the pool solvent without anyone needing to chase you for payment.
Aave and Compound are the reference implementations, with MakerDAO occupying a related niche by minting the DAI stablecoin against deposited collateral. When you evaluate a lending market, look hard at:
- Oracle design: bad price feeds cause unfair liquidations or let attackers drain pools.
- Liquidation parameters: thin liquidation incentives leave bad debt on the books during volatile moments.
- Pool isolation: whether a single toxic asset can poison the whole market or is ring-fenced.
DEX protocols and the AMM model
DEX protocols let people trade tokens without an order book or a custodian holding their funds. The dominant design is the automated market maker (AMM), which replaces matched buyers and sellers with a liquidity pool and a pricing formula.
Uniswap popularized the constant-product model, where the product of the two token reserves stays fixed and the price moves along a curve as people trade. Liquidity providers deposit pairs and earn a cut of every swap. Curve specialized the curve math for stablecoin pairs that should trade near 1:1, cutting slippage dramatically. Balancer generalized pools to many assets with custom weights.
Two trade-offs dominate any DEX integration:
- Slippage and depth: thin pools punish large orders with bad pricing. Aggregators route across many pools to soften this.
- Impermanent loss: when pool prices diverge from the outside market, liquidity providers can end up worse off than if they'd simply held. It's the single most misunderstood number in DeFi.
If you're weighing a custom DEX against integrating an existing one, that's a build-versus-buy call our blockchain development team runs with clients regularly, and the honest answer is usually to compose rather than reinvent the AMM.
Derivatives protocols
Derivatives protocols bring perpetual futures, options, and synthetic assets on-chain. Perpetuals are the heavyweight here by volume: leveraged positions with no expiry, kept honest by a funding rate that nudges the contract price toward the spot price.
These are the most mechanically demanding protocols to get right. They have to source reliable mark prices, manage a margin and liquidation engine, and absorb extreme volatility without going insolvent. dYdX and GMX took different architectural bets on how to do that, one closer to an order book, the other pooling liquidity against traders. Synthetix went a different direction again, minting synthetic assets backed by a pooled collateral model.
The risk here is leverage amplifying everything. A pricing or oracle flaw that's a nuisance in a lending market can wipe out a derivatives protocol in a single block.
Yield protocols
Yield protocols sit on top of everything else. Rather than holding a position manually, you deposit into a vault that automatically allocates across lending markets, liquidity pools, and reward programs, harvesting and recompounding returns.
Yearn made vaults a household name in DeFi by abstracting strategy execution away from the user. The appeal is obvious: better returns without babysitting positions. The catch is equally clear. A yield vault inherits the risk of every protocol it touches, plus the risk of its own strategy code. Yield is a stack of dependencies, and the advertised APY rarely prices in the tail risk underneath it.
If you're chasing returns, read our breakdown of how to take advantage of DeFi and the risks of yield farming before you commit capital. The mechanics that generate yield are the same mechanics that can vaporize it.
Stablecoin protocols
Stablecoins are the settlement currency of DeFi, and the protocols that issue them come in distinct flavors with very different risk profiles.
- Collateralized by fiat: USDC and USDT hold off-chain reserves. Simple peg, but you trust the issuer and their banking.
- Crypto-collateralized: DAI is minted against on-chain collateral via MakerDAO, overcollateralized to absorb volatility. Transparent, but exposed to collateral crashes.
- Algorithmic: pegs maintained by supply-and-demand mechanics rather than reserves. This category has the worst track record; several have collapsed when confidence broke and the mechanism spiraled.
When a stablecoin is the unit of account across your product, its peg mechanism is your foundation. A depeg doesn't stay contained, it propagates into every lending market and pool that quotes against it.
Liquid staking protocols
Liquid staking is the newest major category, and it solved a real problem. Staking proof-of-stake assets like ETH locks them up. Liquid staking protocols let you stake and receive a tradable receipt token representing the staked position plus rewards.
Lido and Rocket Pool are the leading examples. That receipt token can then be used as collateral, swapped, or dropped into a yield vault, so your capital earns staking rewards and stays productive elsewhere. It's composability applied to staking.
The trade-offs are specific: validator performance and slashing risk, the depeg risk of the receipt token versus the underlying asset, and the centralization concern when one protocol controls a large share of total stake on a network.
How to choose between DeFi protocols
There's no universally "best" protocol. There's the one that fits your product, your risk tolerance, and your users. A few questions cut through most decisions.
What problem are you solving? Custody-free trading points to a DEX. Idle-capital returns point to lending or yield. Leverage and hedging point to derivatives. Match the category to the job before you compare names within it.
How battle-tested is the code? Total value locked, audit history, time in production, and how the protocol handled past incidents tell you more than any whitepaper. A protocol that survived a market crash with no bad debt has proven something a six-month-old fork hasn't.
What does it depend on? Trace the oracle, the collateral, the governance, and the upgrade keys. Every dependency is something that can fail or be captured. Admin keys that can drain the contract are a different risk class than an immutable deployment.
Does it compose cleanly? If you're building on top, the protocol's interfaces, documentation, and the ecosystem of tooling around it decide how painful integration will be.
Pick protocols the way you'd pick load-bearing dependencies in any system: by track record, blast radius, and how cleanly they fail.
For teams moving from these fundamentals toward an actual build, we go deeper on architecture and delivery in our look at DeFi development and the future of decentralized finance. The categories above are stable, but the implementations evolve fast, and the gap between a protocol that looks good in a demo and one that holds up under adversarial conditions is where most projects either succeed or get exploited.
The taxonomy gives you the map. Knowing which protocol to trust with real money is the work, and it doesn't get easier with hype, only with reading the code, the audits, and the incident history.
What are the main types of DeFi protocols?
The main categories are lending and borrowing protocols, decentralized exchanges (DEXs) using automated market makers, derivatives protocols for perpetuals and options, yield protocols that automate returns, stablecoin protocols, and liquid staking protocols. Most real DeFi products combine two or three of these categories into a single user flow.
What is the difference between a DeFi protocol and a dApp?
A DeFi protocol is the on-chain logic encoded in smart contracts: how collateral is locked, how rates accrue, how swaps are priced. A dApp is the interface and orchestration layer on top. Multiple front ends can talk to the same protocol, and one dApp can compose several protocols together into one experience.
How do lending protocols work in DeFi?
Suppliers deposit assets into a shared pool and earn algorithmic interest based on utilization. Borrowers post collateral worth more than they borrow (overcollateralization) and draw against it. If collateral value falls past a threshold, liquidators repay the debt and seize collateral at a discount, keeping the pool solvent automatically.
What is impermanent loss on a DEX protocol?
Impermanent loss happens when the prices of tokens in a liquidity pool diverge from the outside market. Because the AMM rebalances along its pricing curve, liquidity providers can end up with less value than if they had simply held the tokens. It's the most misunderstood number in DeFi and a key trade-off for any AMM.
Are algorithmic stablecoins safe to build on?
Algorithmic stablecoins carry the highest risk of the stablecoin categories. They maintain their peg through supply-and-demand mechanics rather than reserves, and several have collapsed when confidence broke and the mechanism spiraled. Fiat-collateralized and crypto-collateralized stablecoins have far stronger track records for production use.
How do I choose the right DeFi protocol to integrate?
Match the protocol category to the problem you're solving, then judge specific protocols by track record: total value locked, audit history, time in production, and how they handled past incidents. Trace every dependency, oracle, collateral, governance, admin keys, since each is a potential failure point, and prefer protocols that compose cleanly.
Frequently asked questions
The main categories are lending and borrowing protocols, decentralized exchanges (DEXs) using automated market makers, derivatives protocols for perpetuals and options, yield protocols that automate returns, stablecoin protocols, and liquid staking protocols. Most real DeFi products combine two or three of these categories into a single user flow.
A DeFi protocol is the on-chain logic encoded in smart contracts: how collateral is locked, how rates accrue, how swaps are priced. A dApp is the interface and orchestration layer on top. Multiple front ends can talk to the same protocol, and one dApp can compose several protocols together into one experience.
Suppliers deposit assets into a shared pool and earn algorithmic interest based on utilization. Borrowers post collateral worth more than they borrow (overcollateralization) and draw against it. If collateral value falls past a threshold, liquidators repay the debt and seize collateral at a discount, keeping the pool solvent automatically.
Impermanent loss happens when the prices of tokens in a liquidity pool diverge from the outside market. Because the AMM rebalances along its pricing curve, liquidity providers can end up with less value than if they had simply held the tokens. It's the most misunderstood number in DeFi and a key trade-off for any AMM.
Algorithmic stablecoins carry the highest risk of the stablecoin categories. They maintain their peg through supply-and-demand mechanics rather than reserves, and several have collapsed when confidence broke and the mechanism spiraled. Fiat-collateralized and crypto-collateralized stablecoins have far stronger track records for production use.
Match the protocol category to the problem you're solving, then judge specific protocols by track record: total value locked, audit history, time in production, and how they handled past incidents. Trace every dependency, oracle, collateral, governance, admin keys, since each is a potential failure point, and prefer protocols that compose cleanly.
More from the journal

How Does DeFi Work? A Technical Breakdown of the Mechanics
Most explainers stop at "no banks." This one goes deeper: how DeFi actually works at the level of smart contracts, AMM pricing math, liquidity pools, price oracles, composability, and on-chain settlement, plus where each piece tends to break.

Smart Contract Audit: What It Is, the Process, and Costs
A smart contract audit is the last gate before mainnet for code that can't be patched and holds real money. This guide covers what an audit checks, how the process and timeline work, what it costs, and how to prepare your contracts so reviewers find design flaws, not typos.

Yield Farming Explained: Strategies, APY, and Real Risks
Yield farming can generate real returns, but the headline APY rarely survives contact with impermanent loss, depegs, and contract risk. Here is how the mechanics actually work, where the money comes from, and the failure modes that quietly erase your gains.