PipeFlare

What is DeFi?

What DeFi (decentralized finance) means in crypto — blockchain-based swaps, lending, and yield, the real risks, and how to start safely in 2026.

Updated September 2026 · Reviewed by the PipeFlare team

DeFi is financial services that run on blockchains, with no bank or broker in the middle

It lets you swap, lend, and earn on your crypto without trusting a company to hold it

Explore crypto staking →

Category

Financial framework

Difficulty

Intermediate

Where you'll see it

DEXs like Uniswap, lending markets like Aave, stablecoin yield, liquid staking, perps

First introduced

2018 (term coined); went mainstream during DeFi summer June 2020

About what is defi

DeFi — short for decentralized finance — is financial services that run on public blockchains instead of inside banks. You can swap tokens, lend, borrow, and earn yield without opening an account anywhere. Smart contracts replace the middleman, and your self-custody wallet replaces your login. The category exploded in mid-2020 and now spans hundreds of protocols holding tens of billions of dollars.

How it actually works

Every DeFi protocol is a set of smart contracts deployed to a blockchain — usually Ethereum or an Ethereum Layer 2 like Base or Arbitrum. You interact through your own wallet, with no signup or KYC at the protocol level. Swaps run through an automated market maker (AMM) like Uniswap, which prices trades from a pool of assets instead of an order book. Lending markets like Aave let you deposit assets into a pool and earn interest from over-collateralized borrowers. Protocols are composable — they snap together like Lego, so a yield strategy can route through three or four contracts in one transaction.

DeFi, CeFi, and TradFi sit on a spectrum of who holds custody and what rules apply. TradFi (traditional finance) means banks and brokerages, bound by banking licenses, deposit insurance, and know-your-customer law. CeFi platforms such as Coinbase and Binance sit in between: they trade crypto assets but still custody funds the way a bank does, without deposit insurance. DeFi has no custodian at all; a smart contract executes the trade or loan exactly as coded, and your own wallet is the only account, so there's no application queue and no branch to visit, but also no institution to call if a contract has a bug. See /learn/defi-risks-and-regulation-explained for how each layer's regulatory exposure differs in practice.

Start here

  1. 1Fund a self-custody wallet (MetaMask, Rabby) on a Layer 2 to keep gas low.
  2. 2Start on an established, audited app — Uniswap for swaps, Aave for lending.
  3. 3Read every transaction before signing; reject blanket "unlimited approval" prompts.
  4. 4Treat experimental protocols as speculation, not savings — never bet rent money.
  5. 5Before depositing real money, check the protocol's audit reports, how long it's been live, and its TVL history.

Strengths

  • Open to anyone with a wallet — no signup, no KYC at the protocol level.
  • Composable: protocols stack like Lego, enabling strategies impossible in banking.
  • Transparent on-chain reserves anyone can audit in real time.

Common misunderstandings

  • Smart-contract exploits drain real money — the Ronin bridge lost $625M in March 2022.
  • Oracle failures, stablecoin depegs, and forced liquidations can wipe positions in minutes.
  • User error — wrong network, malicious approval, phishing site — is the top loss vector.

Common questions

When did DeFi actually start?

The category was named around 2018, but DeFi went mainstream in the summer of 2020. Compound launched its COMP governance token on June 15, 2020, rewarding lenders and borrowers with daily token drops. That sparked "yield farming" and the wave known as DeFi summer. Uniswap V2 had launched a month earlier, in May 2020, providing the AMM rails most of those farms ran on.

What can I actually do with DeFi?

The four core actions are swapping tokens on decentralized exchanges like Uniswap, lending and borrowing on Aave or Compound, earning yield on stablecoins, and providing liquidity to AMM pools. Newer categories include perpetual futures, on-chain options, liquid staking, and tokenized real-world assets like Treasury bills.

Is DeFi safe?

No — DeFi can cost you your entire deposit, and it is not risk-free just because it's auditable. The main failure modes are smart-contract bugs, oracle manipulation, stablecoin depegs, and malicious wallet approvals, any one of which can drain a position to zero with no customer support to call. The Ronin bridge hack in March 2022 lost about $625 million to North Korea's Lazarus Group. Stick to long-running, audited protocols and start with small amounts you can genuinely afford to lose.

What's the difference between DeFi and CeFi?

CeFi (centralized finance) means a company custodies your money — Coinbase, Binance, and the bankrupt firms Celsius and BlockFi are all CeFi. DeFi offers the same product categories (trading, lending, yield) but executes through smart contracts you use directly from your own wallet. Nobody can freeze your account, and nobody is insuring it either.

Do I need KYC to use DeFi?

Usually no — most DeFi protocols have no company to ask. Your wallet is your account. Some front-ends restrict certain jurisdictions, and moving funds back to a centralized exchange will trigger KYC. The underlying smart contracts remain permissionless.

What is impermanent loss?

Impermanent loss is the gap between holding two tokens yourself and depositing them into an automated-market-maker pool like Uniswap, which happens whenever the tokens' price ratio moves after you deposit. The AMM automatically rebalances the pool by selling the token that's rising and buying the one that's falling, so a liquidity provider ends up with less of the winning asset than if they had just held both tokens outright. It's called 'impermanent' because the loss only becomes permanent if you withdraw while the price ratio is still skewed — but for a large enough price swing, it can still outweigh the trading fees the pool paid you. This is a separate cost from slippage, which affects the price you get on a single swap rather than a deposited position.

How much money do I need to start using DeFi?

There's no fixed minimum to start using DeFi, but gas costs make the practical floor higher on Ethereum mainnet than on a Layer 2. On a Layer 2 like Base or Arbitrum, a swap or a lending deposit typically costs a few cents to a couple of dollars in gas, so even $20–$50 is enough to try the mechanics without fees dominating the outcome. On Ethereum mainnet, a single swap can cost anywhere from a few dollars to well over $20 depending on congestion, which makes mainnet impractical for testing with small amounts. The realistic floor is whatever amount keeps gas a small fraction — not the majority — of what you're depositing; below that, you're paying more in fees to learn than you'd lose from any mistake.

Can I lose more than I put in with DeFi?

For most basic DeFi activities — simple lending, staking, or providing liquidity — no, you generally cannot lose more than what you deposited; the worst case is your position going to zero. Depositing into a lending pool, staking a token, or supplying liquidity to an AMM are self-contained positions: a smart-contract exploit, an oracle failure, or a stablecoin depeg can wipe out the value of what you put in, but they don't create a debt that follows you beyond that. The exception is leveraged or margin-based activity — borrowing against collateral to open a bigger position, or trading perpetual futures — where you can end up owing more than your original stake if the market moves fast enough that liquidation can't fully cover the loss, particularly during a sharp price gap. Plain lending, staking, and LPing cap your downside at your deposit; leverage does not always.

Are DeFi earnings taxable?

In most jurisdictions, yes — DeFi yield and swaps are generally taxable events, though the exact treatment depends on your country's tax rules. This is educational only, not tax or financial advice — consult a tax professional for your specific situation. In the US, for example, the IRS treats crypto as property: swapping one token for another is a taxable disposal, and staking or lending rewards are typically ordinary income at their fair market value when you receive them. Other jurisdictions apply similar logic even though rates, exemptions, and holding-period rules differ widely from country to country. Because a single DeFi session can involve several swaps and reward claims, active DeFi use tends to generate more taxable events than simply buying and holding — worth planning for before you dive in. See /tax/defi-taxes for a fuller breakdown of how swaps, yield, and liquidity-pool activity are each treated.

What is liquid staking and how does it relate to DeFi?

Liquid staking lets you stake an asset like ETH to earn staking rewards while receiving a liquid, tradeable token back that represents your staked position, so your capital isn't locked out of DeFi while it's earning yield. Normally, staking ETH directly means it's locked up for the staking period, but liquid staking protocols issue a receipt token 1:1 against your deposit that can then be used as collateral, swapped, or supplied into other DeFi protocols just like any other asset — letting the same capital earn staking yield and participate in lending, liquidity pools, or borrowing at the same time. It has grown into one of the largest single categories of DeFi by value locked. For a comparison of where to actually stake, see our guide to the best crypto staking platforms.

What is a smart contract, in plain terms?

A smart contract is code deployed on a blockchain that automatically carries out an agreement's terms once its conditions are met, with no company or person approving or holding funds in the middle. In DeFi, it replaces the bank or broker — your wallet interacts directly with the code, which executes exactly as written every time.

What do I do if I lose money to a DeFi hack, scam, or exploit?

Losing money to a DeFi hack, scam, or exploit follows the same urgent playbook as any other crypto loss: stop sending anything else, save the transaction hash and wallet addresses involved, and act within the first hour, since a fast-moving exploit can move funds through a mixer within minutes. See /fix for the full breakdown of what's actually recoverable, the exact information to give an exchange or law enforcement, and the recovery-service scams to avoid along the way.

What is a rug pull and how is it different from a hack?

A rug pull is an inside job — the team behind a protocol drains its own liquidity pool or mints and dumps tokens, walking away with user funds they controlled the whole time. A hack is an outside attack, where a stranger exploits a bug in the code or manipulates a price oracle to steal funds the team never intended to take. Both wipe out your deposit, but a rug pull means the people you trusted did it on purpose, while a hack means an attacker found a flaw they trusted didn't exist.

How do I check if a DeFi protocol is legit or audited?

Start by looking up the protocol's audit reports from a named firm like OpenZeppelin, Trail of Bits, or CertiK, and read the summary of what was and wasn't covered — an audit that only checked one contract doesn't cover the rest of the app. Then check how long the protocol has actually been live and handling real money; a longer track record with no major incident is a stronger signal than a fresh launch, however well-marketed. Finally, look at its total value locked (TVL) history on a site like DeFiLlama — steady or growing TVL over months suggests real, ongoing user trust, while a sudden spike followed by a cliff is a common rug-pull pattern.

Which wallet should I use to get started with DeFi, and how do I keep it safe?

Any well-known self-custody wallet like MetaMask or Rabby works to get started — see /learn/what-is-a-crypto-wallet for how wallets work and how to pick one. Whichever wallet you choose, write down its seed phrase on paper and never type it into a website; see /learn/what-is-a-seed-phrase for how to store it safely. For anything beyond a small, active DeFi balance, pair that wallet with a hardware cold wallet — /learn/cold-wallet-vs-hot-wallet explains when a hot wallet is fine and when it's worth the extra step.

How much will gas fees cost me for a DeFi transaction?

It depends entirely on which network you're using — the same swap can cost cents on a Layer 2 or several dollars on Ethereum mainnet during congestion. See /fees/ethereum-gas-fees for current fee ranges and what drives them up or down.

How do I revoke a token approval I no longer want active, or already granted by mistake?

You can revoke a token approval using a revocation tool like Etherscan's Token Approval Checker or Revoke.cash, which reads your wallet's approval history and lets you submit a transaction that sets the allowance back to zero. Revoking costs a small gas fee since it's an on-chain transaction, and doing it periodically for old or unused approvals reduces your exposure if a protocol you approved is later exploited.

If I send funds to the wrong address or wrong network while using a DeFi app, can I get them back?

Sometimes, but it depends heavily on the mistake type and how quickly you act. See /fix/recover-crypto-sent-wrong-address for what's actually recoverable and the steps to take immediately.

How is DeFi lending interest determined and why does it fluctuate so much?

DeFi lending rates are set algorithmically by supply and demand within each protocol's lending pool, rising when borrowing demand is high and falling when it's low, which is why they can swing sharply in short periods. See /learn/crypto-loans for a fuller breakdown of how those rates work and how they compare to CeFi lending.

What are DeFi's core primitives: lending, staking, yield farming, and liquidity mining?

Four building blocks cover most DeFi activity. Lending markets like Aave pool deposits and lend them to over-collateralized borrowers, paying depositors interest. Staking locks a token to help secure a network or protocol in exchange for a reward, sometimes with a liquid receipt token attached so the capital stays usable elsewhere. Liquidity mining means depositing assets into a pool, such as an AMM pair, and earning a share of trading fees plus, on many protocols, extra tokens paid out specifically for supplying that liquidity. Yield farming is the practice of moving capital between whichever lending, staking, or liquidity-mining opportunity currently pays the most, often stacking two or three at once. It's a strategy built on top of the other three primitives, not a separate mechanism of its own.

What are some other well-known DeFi platforms besides Uniswap and Aave?

DeFiLlama has become the standard analytics reference for the space: it tracks total value locked and other metrics across nearly every chain and protocol, and is cited earlier on this page as a way to check a protocol's track record. Jupiter is the leading swap aggregator on Solana, routing a trade across that chain's various decentralized exchanges to find the best price rather than acting as an exchange itself. Lido is the largest liquid-staking protocol by value locked, issuing the stETH token against ETH deposited for staking. None of these names is a recommendation to use any specific platform; they're referenced here as the ones a newcomer is most likely to run into while researching the space.

Sources

Related guides

Ready to put this into practice?

Exchange sign-up bonuses pay both you and a referrer after a qualifying trade.

See bonuses →