Education

DeFi for people who already invest: how it works and where the risks are

How DEXs, collateralized loans and liquidity pools work in DeFi, with numerical examples of liquidation and impermanent loss, the main risks and a checklist for first use.

Illustration of a hardware wallet connected by golden light lines to three translucent glass blocks representing swaps, lending and a liquidity pool, with golden coins circling between them, symbolizing decentralized finance
Illustration of a hardware wallet connected by golden light lines to three translucent glass blocks representing swaps, lending and a liquidity pool, with golden coins circling between them, symbolizing decentralized finance

Overview

DeFi (decentralized finance) is the set of financial applications that run on blockchains: swapping assets, lending, borrowing and earning on balances without an exchange or bank in the middle. Instead of a company, a smart contract, a public program anyone can inspect, executes the rules.

For people who already buy and hold crypto, DeFi is the natural next step, and also where risk changes in nature. You stop depending on a company and start depending on code, price oracles, keys and your own signatures. This guide shows how the pieces work, with two numerical examples, and which risks to check before the first use.

What changes compared with an exchange

  • You use your own wallet. No sign-up: you connect the wallet and sign each operation. You are the one signing, and a confirmed transaction does not come back.
  • Code is the intermediary. There is no help desk to reverse a mistake. A wrong address or a badly granted permission has no chargeback.
  • Everything is auditable, but not everything is safe. Contracts are public; that allows verification but does not guarantee the absence of flaws.
  • Yields are variable. Interest rates and returns move with supply and demand and are nobody's promise.

The main pieces

Decentralized exchanges (DEX)

On a DEX such as Uniswap, you swap one token for another straight from your wallet. Prices come from liquidity pools: reserves of two tokens deposited by users who receive a share of each swap's fees. See also the article on Uniswap and the UNI token.

Collateralized loans

On protocols such as Aave, you deposit an asset as collateral and borrow another, with no credit check. Since there is no collection and no face behind the borrower, the protection is overcollateralization: the collateral must be worth more than the debt at all times.

Stablecoins and liquid staking

Stablecoins are the unit of account for most DeFi operations. Liquid staking issues a token that represents a staked asset, and that token can circulate in other protocols. Each layer adds a dependency: if the stablecoin loses its peg or the token's contract fails, everyone relying on it feels it.

Example 1: a loan and liquidation

Aave measures a loan's safety with the health factor: (collateral value × weighted liquidation threshold) ÷ debt value. Aave's own example: US$ 10,000 of ETH with an 80% liquidation threshold and US$ 6,000 borrowed gives a health factor of 1.333.

Below 1, the loan can be liquidated: anyone can repay part of the debt and receive the collateral plus a bonus, which is a cost to the borrower. In the example, the factor reaches 1 when the collateral is worth US$ 7,500, a 25% drop in the ETH price. In crypto, drops like that happen within days.

To avoid liquidation you must add collateral or repay part of the debt, and monitor the health factor regularly. There is no health factor that is safe for every case: volatile assets call for a larger margin.

Example 2: impermanent loss

Anyone supplying liquidity to a pool earns fees but is exposed to impermanent loss: the difference between the position's value in the pool and what the same tokens would be worth had they stayed in the wallet, when the relative price of the two changes.

In a classic two-token pool (the x × y = k model of Uniswap v2), the loss versus simply holding is about 2% if one token rises 50% against the other, about 5.7% if it doubles and 20% if it quadruples. The loss is only realized when liquidity is withdrawn, and the fees earned may or may not offset it. Concentrated-liquidity pools, as in Uniswap v3 and v4, can increase this exposure within the chosen range.

Main risks

  • Contract failure: code errors can drain funds. Audits reduce the risk but do not remove it.
  • Keys and infrastructure: Immunefi's report for the first half of 2026 finds that the most severe damage increasingly comes from infrastructure failures, compromised private keys, cross-chain configuration errors and privileged access.
  • Liquidation: volatile collateral plus debt can cause forced losses in fast drops.
  • Impermanent loss: affects liquidity providers.
  • Depegged stablecoin: if the "stable" coin falls, loans and pools that depend on it are affected.
  • Permissions and scams: fake sites and signatures that give unlimited access to your tokens. Read the guide on crypto scams.
  • Taxes and records: swaps, sales and receiving rewards may have tax effects. Rules change; confirm with the Brazilian Federal Revenue or an accountant and keep a history of your operations.

Checklist before your first use

  • I use a separate wallet with an amount I can afford to lose, not my main wallet.
  • I confirm the site address from an official source, never from an ad or a message.
  • I understand where each asset goes and who can move it.
  • On loans, I keep the health factor well above 1 and watch the collateral price.
  • I read what I am signing and revoke permissions I no longer use.
  • I do not treat the advertised yield as guaranteed; it varies and can fall to zero.
  • I keep a record of each operation for income tax.

Frequently asked questions

Is DeFi safer than an exchange?

Not necessarily. The risks are different: you remove the company's risk but take on the risk of code, keys and your own signatures.

Do I need a lot of money to start?

No, but network fees can weigh on small amounts. Compare the cost with the amount moved.

Is the advertised yield guaranteed?

No. It varies with demand and with the protocol's risk; a very high yield usually signals higher risk.

What is the most prudent first step?

Understand how it works in a separate wallet, with a small amount, before any larger position.

Conclusion

DeFi expands what you can do with crypto, but it swaps a company's risk for the risks of code, keys and your own decisions. Those who already invest have an edge in knowing volatility; the next step is to learn the tools with small amounts and clear rules. Nothing here is a recommendation to use a specific protocol.

This topic is part of the advanced level of the Manual do Investidor series on the Cripto View YouTube channel.

Sources and update criteria

Sources consulted on Nov 21, 2026: Aave — Health Factor and liquidations; Uniswap — What is Impermanent Loss?; Uniswap v2 — Understanding Returns; The Block — Immunefi report on H1 2026. Impermanent loss percentages are computed from the x × y = k formula, before fees. Yields, risks and protocols change often and need rechecking.

Educational and informational content. This is not individual investment advice, nor an offer or solicitation to buy or sell assets.

Read more

A sound market reading combines data, context and clear risk limits.