ONE TOPIC · THREE LEVELS OF EXPLANATION
DeFi explained: how it works and its risks
After this lesson: Understand what contract-based financial services do and where their risks come from.
01 / BEGINNER
First, what is it?
DeFi, short for decentralised finance, refers to financial services using programs on a blockchain: swapping, lending or borrowing assets, for example. It is not a particular currency. Code replaces some intermediary operations, but not every dependency disappears.
Words to know
- Collateral
- An asset pledged as security for a debt.
- Liquidation
- An operation repaying debt using part of the collateral under protocol rules.
- Protocol
- The rules and contracts defining the service.
The idea to understand
The benefit is making some operations accessible and verifiable through common rules. The trade-off is more direct responsibility for understanding contracts, assets and loss conditions.
SEE IT IN PRACTICE
Now, a concrete example
Aave is a real collateralised lending protocol. It uses a position health factor to compare collateral and debt. Thresholds depend on the assets and protocol market; making a deposit does not make borrowing risk-free.
YOUR TURN
Collateral is worth more than the debt today. Does that rule out a future liquidation?
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
No. Its price can fall, interest can increase the debt, and applicable thresholds can be reached long before collateral is worthless. Understand the remaining margin.
02 / INTERMEDIATE
How it works, and why
The benefit is making some operations accessible and verifiable through common rules. The trade-off is more direct responsibility for understanding contracts, assets and loss conditions.
Collateralised lending requires depositing collateral, then permits borrowing within limits. The collateral’s price can fall while debt and interest remain due. Liquidation can then be triggered.
A return should have an identifiable source: borrowers’ interest, trading fees or token distributions. A high rate may reflect high risk or temporary subsidies.
Risks compound: bugs, wrong oracle prices, loss of asset value, administrators changing rules or network downtime. A technical audit reduces some uncertainty without removing these risks.
SEE IT IN PRACTICE
Apply the mechanism
Aave is a real collateralised lending protocol. It uses a position health factor to compare collateral and debt. Thresholds depend on the assets and protocol market; making a deposit does not make borrowing risk-free.
YOUR TURN
Collateral is worth more than the debt today. Does that rule out a future liquidation?
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
No. Its price can fall, interest can increase the debt, and applicable thresholds can be reached long before collateral is worthless. Understand the remaining margin.
03 / ADVANCED
The rules behind the interface
For one collateral asset, a teaching model of health factor is: collateral value × liquidation threshold / debt value. Real protocols may weight multiple assets and apply specific modes. This ratio is not a price forecast.
Composability lets a contract use other contracts. It also propagates failures. Analysis should trace dependencies: oracle, collateral asset, upgrade mechanism, liquidator liquidity and network assumptions.
YOUR TURN
Fictional model: €1,000 collateral, 80% threshold, €600 debt. Collateral falls to €700. Compare the health factors.
Form an answer before opening the explanation. You can also discuss it aloud.
Compare with the explanation
Initially: 1,000 × 0.8 / 600 ≈ 1.33. Afterwards: 700 × 0.8 / 600 ≈ 0.93. In this model, falling below 1 makes the position liquidatable. This is neither a universal threshold nor a real-account simulation.
Use the official sources at the end of this page to inspect these mechanisms further.
A useful companion: What is a smart contract? An example
THE SHORT ANSWER
DeFi brings together financial services built with smart contracts, including swaps, lending and liquidity provision. It shifts some trust to code, collateral and oracles. Returns vary and funds can be lost.
Sources and further reading
- Ethereum.org — Decentralized finance · in English
- Sky — USDS and the evolution of MakerDAO · in English
- Aave — Health factor and liquidations · in English
Page updated on
Documentation checked on · WhyTheBlockchain · Editorial approach