# What Is DeFi? Decentralised Finance Explained (With the Risks)

Source: https://cryptoinfrastructure.io/what-is-defi/
Author: Luca Sebastian
Published: 2026-10-17
Updated: 2026-11-28
Publisher: Crypto Infrastructure (cryptoinfrastructure.io)

TL;DR summaryDeFi (decentralised finance) is a set of financial services, mainly trading, lending, borrowing and stablecoins, that run as smart contracts on public blockchains such as Ethereum instead of through a bank or broker. You connect your own wallet. Code holds the funds and enforces the rules. That removes the middleman but not the risk: there is no deposit insurance, mistakes cannot be reversed and losses come from code bugs, bad price feeds, bridges, liquidations and scams. On 13 October 2026 DefiLlama counted about $91 billion locked in DeFi. Its hacks view showed about $9.3 billion stolen from DeFi protocols to date.

Banks, brokers and exchanges all do the same basic job: they hold your money, match you with someone on the other side and keep the records. DeFi tries to do that job with software that anyone can inspect and nobody can close for the weekend. The idea is simple. Many explainers stop before the details, especially the ways it breaks. This guide covers what DeFi means, how it works, what you can actually do with it (DEXs, liquidity pools, lending, stablecoins, yield farming), where the money for “yield” really comes from plus the specific risks, with real incidents from 2025 and 2026.

## What is DeFi?

DeFi, short for decentralised (or decentralized) finance, is the name for financial apps built on public blockchains where smart contracts, not a company, hold the funds and carry out the transactions. [ethereum.org](https://ethereum.org/defi/) describes it as “a collective term for financial products and services that are accessible to anyone who can use Ethereum.”

Three features separate DeFi from a normal finance app:

- **Self-custody.** You use your own wallet. The app never takes your assets into a company account; you approve a smart contract to move specific tokens.

- **Open access.** Anyone with a wallet can use the contracts. There is no account application, though many website front ends block some countries.

- **Public code and records.** The contracts and every transaction are visible on the blockchain.

What DeFi does not mean: that nobody is in charge. A 2021 [Bank for International Settlements study](https://www.bis.org/publ/qtrpdf/r_qt2112b.htm) put it bluntly: “all DeFi platforms have an element of centralisation, which typically revolves around holders of ‘governance tokens’.” Teams and token holders can usually change parameters, upgrade contracts or pause markets. Knowing who holds those powers is part of understanding any DeFi app.

### Is DeFi the same as crypto?

No. Crypto is the broad category of blockchain tokens, including Bitcoin and Ether. DeFi is one use of those tokens: financial services run by smart contracts. Buying bitcoin on a [centralised exchange](/is-coinbase-safe/) is crypto but not DeFi, because the exchange holds your coins. Swapping tokens on Uniswap from your own wallet is DeFi.

## How does DeFi work?

A blockchain is a shared ledger that thousands of computers keep in sync, so no single party controls the record. Some blockchains, Ethereum being the largest, can also run programs called smart contracts. A smart contract can hold tokens and release them only when its coded conditions are met.

ethereum.org breaks DeFi into four layers:

- **The blockchain**, which records who owns what (Ethereum, Base, Solana, BNB Chain and others).

- **The assets**: ETH and the other tokens, including stablecoins.

- **The protocols**: smart contracts that provide a service, such as a lending market or an exchange.

- **The applications**: the websites and wallets you click through, which send transactions to the protocols.

Each step you take is a blockchain transaction that you sign with your wallet and pay a network fee (“gas”) for. Because protocols are open, one can plug into another. A token you receive from one protocol can be deposited as collateral in a second and traded in a third. That stacking is called composability. It is DeFi’s main strength. As the risk section shows, it is also the way one failure spreads to many apps.

### Where DeFi activity sits today

According to DefiLlama, total value locked (TVL, the value of assets deposited in DeFi contracts) was about $91.4 billion on 13 October 2026. These figures are a snapshot. They move with token prices every day and are not a measure of safety.

| Snapshot (DefiLlama, 13 October 2026) | Figure |
| --- | --- |
| Total DeFi TVL | About $91.4bn |
| Ethereum’s TVL | About $50.9bn (roughly 56% of the total) |
| Next largest chains | Base $6.1bn, Solana $6.1bn, BNB Chain $5.6bn, Tron $5.6bn |
| Largest protocols by TVL | Lido (liquid staking) $24.0bn, Aave (lending) $18.3bn, Morpho (lending) $11.2bn |
| DEX trading volume, last 30 days | About $248bn, with Uniswap at about $79bn |
| Stablecoin market cap (all chains) | About $306bn, USDT 60% of it |

Source: [DefiLlama](https://defillama.com/) dashboards for TVL, chains, DEX volume and stablecoins. Early-2026 figures, such as Aave at about $27 billion and Ethereum at 63% to 68% of DeFi TVL, are well above the October 2026 snapshot.

For scale, the EU’s banking and markets authorities, the EBA and ESMA, called DeFi “a niche phenomenon” in January 2025, with value locked in DeFi at about 4% of the global crypto-asset market.

## What can you do with DeFi?

### What is a DEX?

A decentralised exchange (DEX) lets you swap one token for another straight from your wallet. There is no account and no company holding your funds between trades. Most DEXs, including Uniswap, PancakeSwap, Aerodrome and Curve, do not use an order book of buyers and sellers. They use liquidity pools.

### What is a liquidity pool and how do AMMs work?

A liquidity pool is a smart contract holding two (or more) tokens, for example ETH and USDC. Traders swap against the pool rather than against another person. The rule that sets the price is called an automated market maker (AMM).

[Uniswap’s documentation](https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works) describes the classic version as “x * y = k”: the amounts of the two tokens, multiplied together, must stay constant during a trade. If you take ETH out of the pool, you must put in enough USDC that the product does not fall. The more ETH you take, the more each extra unit costs, which is why large trades in small pools get worse prices (called slippage).

The pool’s price only changes when someone trades. If it drifts from the price on other markets, arbitrage traders buy the cheap side and sell the expensive side until the gap closes. That is how a pool “knows” the market price.

The tokens in the pool come from **liquidity providers**. Anyone can deposit both tokens and receive a pool token representing their share. In Uniswap v2, each trade pays a 0.30% fee that is added to the pool, so providers collect it when they withdraw. Newer designs, such as Uniswap v3 and v4, let providers choose price ranges and fee tiers, which changes the maths below.

### What is impermanent loss?

Impermanent loss is the shortfall a liquidity provider has compared with simply holding the two tokens, caused by the pool rebalancing as prices move. Here is how it works, with hypothetical prices and fees ignored:

- You deposit 1 ETH and 2,000 USDC into an x * y = k pool when ETH is $2,000. Your stake is worth $4,000.

- ETH rises to $4,000 elsewhere. Arbitrage traders buy ETH from the pool until its price matches. To keep x * y constant, your share ends up as about 0.707 ETH and 2,828 USDC.

- Your pool share is now worth about $5,657. If you had held the original 1 ETH and 2,000 USDC, you would have $6,000.

- The $343 gap, about 5.7%, is impermanent loss. It shrinks if the price returns to where you started. It becomes permanent if you withdraw at the new price.

Fees earned can offset it, or not. Whether they do depends on trading volume, which is not predictable from a pool’s past numbers.

### What is DeFi lending and how does it work?

DeFi lending runs on pooled markets such as Aave, Morpho, Compound and Spark. Lenders deposit tokens into a pool. Borrowers take tokens out by locking up collateral worth more than the loan. Aave’s documentation states that “positions are always over-collateralized, meaning the collateral value must exceed the borrowed amount.” No credit check is involved because the collateral is the only guarantee.

Interest rates are set by code, not a loan officer. On Aave, “interest rates adjust with utilization”: the more of a pool that is borrowed, the higher the rate, rising steeply once usage passes a set level. That is why any lending rate you see is a snapshot that can change block by block.

The key risk mechanism is liquidation. Aave measures each loan with a **health factor**, which its [help centre](https://aave.com/help/borrowing/liquidations) defines as total collateral value multiplied by the collateral’s liquidation threshold, divided by total borrowed value. Below 1, a liquidator can repay part of your debt and take some of your collateral at a discount (the “liquidation bonus”). A worked example with hypothetical numbers:

- You deposit ETH worth $10,000 as collateral. Assume its liquidation threshold is 80%.

- You borrow $6,000 of USDC. Health factor: (10,000 x 0.80) / 6,000 = 1.33.

- ETH falls 25%, so your collateral is worth $7,500. Health factor: (7,500 x 0.80) / 6,000 = 1.0.

- Any further fall makes the position liquidatable. You lose part of your collateral plus the bonus paid to the liquidator.

The same liquidation logic drives leveraged trading on perpetual futures exchanges; the guide to [leverage, perps and liquidation](/what-is-leverage-in-crypto/) works through the maths there.

Prices come from oracles, outside data feeds that tell the contract what ETH is worth. If the oracle is wrong or manipulated, healthy loans can be liquidated, or bad loans approved.

**Flash loans** are a DeFi-only variant: borrowing with no collateral, provided the loan is repaid within the same transaction. If it is not repaid, ethereum.org explains, “the transaction reverts as if nothing ever happened.” They are used for arbitrage and refinancing. They are also a common tool in exploits, as in the Cetus case below.

### Is DeFi lending risky?

Yes, for both sides. Borrowers face liquidation when collateral prices fall or oracles misfire. Lenders face smart contract bugs, bad debt if liquidations fail to cover a loan plus the risk that they cannot withdraw because a pool is fully borrowed. That last point surprises many lenders: when utilisation hits 100%, there is nothing left in the pool to pay you until borrowers repay or new deposits arrive. It happened at Aave in April 2026 (see the KelpDAO case below). None of this is covered by deposit insurance.

### Stablecoins: DeFi’s unit of account

Most DeFi trading and lending is priced in stablecoins, tokens built to hold a steady value, usually $1. They let you stay in a dollar value without leaving the blockchain. They also carry their own risks: reserve quality, redemption access and depegs. The site’s guide [What Is a Stablecoin?](/what-is-a-stablecoin/) covers the four types and the depegs that have happened.

### What is yield farming?

Yield farming means depositing tokens into DeFi protocols, often moving them between several, to collect whatever those protocols pay out. It is not a product in itself; it is a strategy built on the services above. Any return has to come from somewhere. In DeFi there are four main sources:

| Source of “yield” | Who actually pays it | What can go wrong |
| --- | --- | --- |
| Lending interest | Borrowers, at a rate set by pool utilisation | Rates fall when demand falls; bad debt; withdrawals blocked at 100% utilisation |
| Trading fees | Traders swapping in a pool you supply | Impermanent loss can exceed fees; volume can dry up |
| Incentive tokens | The protocol, by issuing new tokens to attract deposits | The token’s price can fall faster than you collect it; incentives end |
| Staking rewards | Network rewards paid to validators, passed on through liquid staking tokens such as Lido’s stETH | Slashing; the staking token trading below the asset it represents |

An advertised APY is a snapshot of these flows at one moment, often annualised from a short period. It is not a rate anyone guarantees. Stacking several protocols to raise it also stacks their risks.

US regulators are watching this area too. In a 22 July 2026 statement, SEC Commissioner Hester Peirce noted that vaults which “hold or allocate assets to securities could fall into investment company territory,” according to the [DeFi Education Fund’s summary](https://www.defieducationfund.org/defi-debrief-week-of-july-20-2026/).

### Can you make money with DeFi?

Some users earn returns from the four sources above, but none of them is guaranteed. Losses from exploits, liquidations, impermanent loss or falling token prices can be larger than any yield collected. Whether a return is worth the risk depends on where it comes from and what the protocol depends on. That is why the questions in the risk section below matter more than the advertised rate.

## DeFi vs traditional finance and centralised exchanges

|  | Bank or broker | Centralised crypto exchange | DeFi protocol |
| --- | --- | --- | --- |
| Who holds your assets | The institution | The exchange | You, in your wallet, until you deposit into a contract |
| Account checks | Yes | Yes (KYC) in most regions | None at protocol level; some front ends restrict regions |
| Hours | Business hours for many services | 24/7 | 24/7 |
| Deposit insurance | Often, up to a limit | No | No |
| Who fixes a mistake | Customer service, chargebacks | Exchange support, sometimes | Nobody; transactions are final |
| Main failure point | Institution failure, fraud | Exchange hack or insolvency | Code bug, oracle, bridge, your own wallet security |

DeFi swaps the risk of trusting a company for the risk of trusting code and yourself. Exchange risk is real too: DefiLlama’s hacks list records a $387 million hot wallet compromise at Bitget on 24 September 2026, which Bitget later put at $387.5 million ([BleepingComputer](https://www.bleepingcomputer.com/news/security/bitget-resumes-bitcoin-withdrawals-after-3875-million-crypto-heist/)). The [Exchanges](/category/exchanges/) section covers the centralised side.

## The risks of DeFi, with real examples

Each risk below is tied to the part of DeFi it comes from and to a documented incident, so you can see how it actually plays out.

On 13 October 2026, DefiLlama’s hacks database put the total value stolen in DeFi at $9.28 billion and from bridges at $3.69 billion, out of $21.07 billion across all of crypto. These headline totals depend on the dashboard view and filters used, so treat them as orders of magnitude, not precise counts.

### 1. Smart contract bugs, even in audited code

On 22 May 2025, Cetus, the largest DEX on the Sui blockchain, lost $223 million. According to Rekt’s write-up, a maths flaw in a shared library let an attacker, using a flash loan, add a tiny deposit that the pool counted as enormous liquidity, then withdraw real tokens against it. Sui validators froze about $162 million; over $60 million had already been bridged out. Cetus had been audited several times. The auditor Zellic said the vulnerable library was outside its audit scope. An audit proves what was reviewed, on what date, not that a protocol is safe.

### 2. Composability: one failure spreads

On 18 April 2026, according to [Rekt’s analysis](https://rekt.news/kelpdao-rekt), an attacker forged a cross-chain message to KelpDAO’s rsETH bridge and minted about 116,500 rsETH, roughly $290 million. Rekt reports that the bridge relied on a single verifier, a setup a risk firm had flagged in February 2025. The attacker then deposited the rsETH as collateral on Aave and borrowed ETH against it. Rekt reports WETH pools hitting 100% utilisation, blocking withdrawals, billions leaving Aave within 48 hours, nine protocols freezing markets and estimated Aave bad debt of $124 million to $230 million. These figures are Rekt’s estimates, not audited totals. Lenders who had never touched rsETH were affected. That is composability working in reverse.

### 3. Bridges

Bridges move tokens between blockchains, usually by locking them on one chain and issuing a copy on another. If the bridge is fooled, the copies are worthless. Bridge incidents fill the top of Rekt’s all-time leaderboard: Ronin ($624 million, March 2022), Poly Network ($611 million, August 2021) and BNB Bridge ($586 million, October 2022). DefiLlama also lists bridge logic flaws at NEAR Intents ($3.8 million) on 1 October 2026 and Payy Network ($1.83 million) on 24 September 2026.

### 4. Oracle manipulation

If a protocol trusts a price that an attacker can move, the attacker can borrow too much or trigger liquidations. DefiLlama classifies the 10 October 2026 Papertrade loss of $1.28 million on Hyperliquid as spot price oracle manipulation.

### 5. Scams, fake sites and approvals

Many losses never touch a protocol’s code. DefiLlama lists a “Fake GIWA Bridge” impersonation scam that took $2.08 million on 27 September 2026, plus a token approval abuse at Limit Break Payment Processor ($1.8 million, 24 September 2026). When you approve a contract to spend your tokens, that permission can stay open until you revoke it. Rug pulls, where a team drains its own project, are the other common pattern.

### 6. Admin keys and governance

Smart contracts are often described as unchangeable once deployed. ethereum.org stresses that they run exactly as written. That holds for the code at one address. Many protocols, though, use upgradeable contracts or admin roles that can change parameters, pause markets or swap the code behind the same address. The KelpDAO case also showed chain-level powers: Rekt reports that Arbitrum’s Security Council froze about 30,766 ETH of the attacker’s funds. That helped victims. It also shows that “decentralised” systems contain people with the power to intervene.

### 7. Liquidation, volatility and your own keys

Borrowers can be liquidated in minutes during a crash. Liquidity providers face impermanent loss. Because you hold your own keys, losing your recovery words, or typing them into a phishing site, means losing the wallet with no one to call. The site’s guide to [seed phrases](/what-is-a-seed-phrase/) covers how to store them.

### Is DeFi safe?

No DeFi protocol can be called safe. That includes audited and large ones. Some questions narrow the risk: Has the code been audited, by whom and what was in scope? Is there a bug bounty? Has the protocol been exploited before? How did it respond? Who can upgrade or pause the contracts? Which oracle does it use? Does it depend on a bridge or a token from another protocol? How much of the pool is borrowed right now? None of the answers makes a protocol safe, but a protocol that cannot answer them is a clear warning sign.

## Is DeFi regulated?

Partly. The rules are still moving. The protocols themselves are mostly outside existing licensing regimes, while the companies around them (front ends, [stablecoin issuers](/how-do-stablecoins-make-money/), exchanges) often are regulated.

| Jurisdiction | Status |
| --- | --- |
| United States | No DeFi-specific statute. The IRS rule that would have made DeFi front ends report user trades as brokers was overturned by Congress (H.J.Res.25, signed 10 April 2025). The [CLARITY Act](/clarity-act/), a market structure bill with protections for software developers, failed a Senate cloture vote 49 to 50 on 15 September 2026. Law firm DLA Piper expects little chance of it passing this year. The SEC and CFTC are issuing guidance and staff relief case by case. |
| European Union | [MiCA](/mica-regulation/) regulates crypto-asset issuers and service providers. How it should treat DeFi with no identifiable provider is still under review: Article 142 asks the European Commission to assess “the need for and feasibility of regulating DeFi.” The EBA and ESMA fed into that review in a [16 January 2025 report](https://www.esma.europa.eu/node/215601). |

For you, the practical point is that a DeFi protocol gives you none of the protections of a regulated provider: no ombudsman, no compensation scheme, no deposit insurance. [Rules on tax and reporting](/crypto-taxes/) still apply to you as a user in most countries, so follow your local tax authority’s guidance.

## How do you get your money out of DeFi?

Getting from DeFi back to a bank account usually takes three steps:

- **Exit the protocol.** Withdraw your deposit, repay any loan or remove your liquidity, so the tokens are back in your wallet. This can fail if a lending pool is fully borrowed or a market is paused.

- **Move to an off-ramp.** Self-custody wallets cannot pay a bank directly. Send the tokens, usually as a stablecoin, to a centralised exchange or payment service that supports withdrawals in your currency. Use the network the exchange supports for that token.

- **Sell and withdraw.** Sell for your local currency and withdraw to your bank. The exchange will need identity checks. The sale may be a taxable event where you live.

Some wallet apps build in an off-ramp partner, which does the same steps behind one screen.

## How to use DeFi without losing funds

DeFi is a working alternative way to trade, lend and borrow, with real benefits: it is open all hours, you keep custody and every rule is public. The cost is that you take on the jobs a bank or exchange would do for you, including security, vetting counterparties and absorbing losses. Before using any protocol, look at where its yield comes from, who can change its contracts, what it depends on (oracles, bridges, other tokens), its audit scope and incident history plus how you would exit in a crisis. Treat every figure here as a dated snapshot. Recheck it at the source before relying on it. To compare specific protocols on fees, size and incident history, see the guide to the [best DeFi platforms](/best-defi-platforms/).

For how this site researches and dates its claims, read the [methodology](/methodology/). Find more plain-English explainers in [Guides](/guides/).

This review is general information, not financial advice. Cryptoassets are volatile and uninsured; nothing here is a recommendation to use any platform or hold any asset. See the site’s [disclaimer](/disclaimer/).

## Sources

- [ethereum.org](https://ethereum.org/defi/)

- [Bank for International Settlements study](https://www.bis.org/publ/qtrpdf/r_qt2112b.htm), bis.org

- [DefiLlama](https://defillama.com/), defillama.com

- [Uniswap’s documentation](https://docs.uniswap.org/contracts/v2/concepts/protocol-overview/how-uniswap-works), docs.uniswap.org

- [help centre](https://aave.com/help/borrowing/liquidations), aave.com

- [DeFi Education Fund’s summary](https://www.defieducationfund.org/defi-debrief-week-of-july-20-2026/), defieducationfund.org

- [BleepingComputer](https://www.bleepingcomputer.com/news/security/bitget-resumes-bitcoin-withdrawals-after-3875-million-crypto-heist/), bleepingcomputer.com

- [Rekt’s analysis](https://rekt.news/kelpdao-rekt), rekt.news

- [16 January 2025 report](https://www.esma.europa.eu/node/215601), esma.europa.eu
