What Is DeFi? Decentralized Finance Explained | LabelYX
Lending, borrowing, trading, and earning yield, all run by code instead of a bank. Here's how it actually works and what to watch out for.
What DeFi actually is
DeFi stands for decentralized finance. It's a catch-all term for financial services, lending, borrowing, trading, earning interest, built using smart contracts instead of a bank, broker, or other middleman. A smart contract is just code deployed on a blockchain that runs automatically and exactly as written, with no company behind the counter deciding what happens.
In practice, that means you connect a crypto wallet to a website, and the website talks directly to a piece of code sitting on-chain. There's no account application, no approval process, and usually no one checking who you are. If you're not familiar with how wallets or blockchains work under the hood, it's worth reading our wallets guide and our blockchain explainer first, since most of what follows builds on those basics.
DeFi versus TradFi versus CeFi
It helps to place DeFi next to the two systems people usually compare it to. TradFi (traditional finance) is your bank or brokerage: a company holds your money, verifies your identity, and can freeze or reverse things at its own discretion. CeFi (centralized crypto finance) is a crypto exchange that still works like a company, you deposit funds, they custody it, and you trust them to give it back.
DeFi cuts the company out of the middle. You interact directly with a protocol from your own wallet, and no one custodies your funds unless you explicitly choose to deposit them into a smart contract yourself. That's a meaningful difference: it removes gatekeepers, but it also removes the safety net of a support team or a reversible transaction if something goes wrong.
The core building blocks
Most of what people mean by "DeFi" comes down to a handful of protocol types that show up again and again.
- Decentralized exchanges (DEXs). A DEX lets you swap one token for another directly against a pool of funds, rather than matching your order against another trader's order the way a company-run exchange would. There's no order book operator in the middle, just code and the funds locked into it.
- Lending and borrowing protocols. You can deposit an asset into a lending protocol to earn interest from other users borrowing it, or post an asset as collateral to borrow against it. Interest rates, collateral requirements, and liquidations are all governed by code rather than a loan officer.
- Liquidity pools and AMMs. Most DEXs price trades using an automated market maker (AMM), a formula that adjusts the price based on the ratio of assets sitting in a liquidity pool. Anyone can deposit funds into that pool and earn a cut of trading fees in return, which is what people mean when they talk about being a liquidity provider.
If any of these terms feel unfamiliar once you're reading further into DeFi, our crypto glossary has plain-language definitions for AMM, liquidity pool, impermanent loss, yield farming, and TVL (total value locked), all terms you'll run into constantly.
Yield farming and staking
Two more terms worth knowing. Yield farming is the practice of moving funds between different DeFi protocols to chase the best available return, often a mix of trading fees and token rewards. Staking, in the DeFi sense, usually means locking up an asset (or providing liquidity) to earn a yield in exchange. Both are just ways people try to put idle crypto to work, but the advertised returns aren't guaranteed and can come with real risk attached.
Why DeFi genuinely appeals to people
Setting the hype aside, there are real reasons DeFi has stuck around. There's no gatekeeping: anyone with a wallet and an internet connection can use most protocols, regardless of where they live or how much money they have. It runs 24/7, since there's no branch that closes and no holiday schedule.
It's also transparent in a way TradFi isn't. Anyone can inspect the code a protocol runs on and watch its on-chain activity in real time, no need to trust a quarterly report. And protocols are composable, meaning they can plug into each other. A token you earn from lending on one protocol can often be immediately deposited into another, which is how a lot of more complex DeFi strategies get built.
The risks, honestly
None of this is free upside, and the risks are worth taking seriously rather than treating as fine print.
- Smart contract bugs and exploits. Code can have flaws, and DeFi protocols have repeatedly lost user funds to bugs or exploits that were only found after the fact. Even well-audited protocols aren't immune.
- Yields that look too good to be true usually are. A protocol advertising a very high return is often subsidizing it with inflationary token rewards rather than real revenue from fees or borrowing demand. When those rewards dry up or the token's price drops, the "yield" can disappear or turn negative fast.
- Impermanent loss. If you provide liquidity to an AMM pool, the value of your deposit can end up worse than if you'd simply held the underlying assets, especially when their prices move apart from each other. It's a quiet drag on returns that catches a lot of new liquidity providers off guard.
DeFi is genuinely worth understanding, and for the right person it can be a useful and even fun part of managing crypto. But it rewards caution more than curiosity. Starting with small amounts on well-established, widely-used protocols is far safer than chasing whatever new high-yield opportunity is trending this week.
Keep learning the fundamentals
Free · No sign-up · Part of the LabelYX Learn series