DeFi Risks
Luke learns that 'old' does not mean 'risk-free': in April 2026 Aave depositors took losses because of someone else's collateral (rsETH) whose backing broke on a bridge, not because of Aave's own code. DeFi is open water: smart-contract bugs, falling prices, exchange failures, no deposit insurance, and scammers.
This is an important lesson in the whole course. DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → offers higher returns than banks — and when you see a bigger number, it's worth asking yourself: "what risk am I being paid for here?" In this lesson you'll get to know every risk type well enough to understand how it works and how to protect yourself from it.
Smart Contract Risks
Picture a vending machine: you put a coin in, it hands you the item, and no shopkeeper is involved — the rules live inside the machine. A smart contract is that same kind of machine, except it manages your money. If it works correctly, everything's fine. But if it has a bug, someone can exploit it and "drain" all the funds.
A smart contract is a program. Programs are written by people. And people make mistakes. Here are the main types of risk — and how to spot each one:
1. Bug (a code error)
A bug is an error in the program's code. Like a typo in a dictation exercise, except here a mistake can cost millions.
Example: in 2023, Euler Finance lost $197M to a single bug in one function. One line of code — and the whole protocol was drained.
How to protect yourself: only use protocols that have been checked by independent experts (auditors) and have run for a long time without problems.
2. Reentrancy attack
Imagine an ATMATMAt The Money — an option whose strike sits at the current price.Read the lesson → that hands out cash first and only checks the account balance afterward. If you can repeat the withdrawal between those two steps — you can drain the ATMATMAt The Money — an option whose strike sits at the current price.Read the lesson →.
Reentrancy works in a similar way — the program gets called again and again before it manages to update its own records.
Example: in 2016, "The DAO" lost $60M in ETH. It was the first major DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → incident.
How to protect yourself: modern protocols have safeguards against this. But always check whether a protocol has been audited.
3. Oracle manipulation (faking the price feed)
DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → programs don't know on their own what SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → or ETH costs. They rely on oracles — external price feeds. Think of it as a price board. If someone alters the price on the board, the program makes the wrong decisions.
Example: in 2022, someone faked the price on Mango Markets (SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson →) and borrowed $114M — more than they were entitled to.
How to protect yourself: reliable oracles (Chainlink, Pyth) pull from many different price sources. They're hard to fool.
4. Flash loan attack (an instant loan)
Imagine you could borrow millions of dollars with no collateral at all — on the condition that you pay it back within a few seconds. That's a flash loan — a legitimate DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → feature.
But hackers use it as a tool: borrow a huge sum → manipulate a price → pocket the profit → repay the loan. All of it happens within seconds.
Examples: Cream Finance ($130M), Pancake Bunny ($45M), Harvest Finance ($34M) — all fell victim to flash loan attacks.
How to protect yourself: good protocols have safeguards. But it remains a hard problem to solve completely.
5. Upgrade risk (when the program can change)
Most DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → programs can be upgraded (their code can be changed). That's useful for fixing bugs. But if someone took control, they could rewrite the program and steal all the funds.
How to protect yourself: check whether the protocol has a timelock (a delay before any change takes effect) and multi-sig (approval required from multiple people). That means one person alone can't change the program.
Rating Protocol Security
Not all protocols are equally secure. Here's a visual map of our strategy's protocols — by security (audits + age) and liquidity (TVLTVLTotal Value Locked — the total value deposited in a DeFi protocol. An indicator of how popular a protocol is. + ease of exit):
Above — each protocol as a bubble. Size = TVLTVLTotal Value Locked — the total value deposited in a DeFi protocol. An indicator of how popular a protocol is. (total value locked). Color = chain. The ideal quadrant is top-right (secure + liquid) — that's where AaveAaveEthereum lending protocol (v3). In our strategy: ETH collateral to a USDC loan.Read the lesson → and UniswapUniswapAn Ethereum concentrated-liquidity protocol (V3/V4). Its Solana counterpart is Orca.Read the lesson → sit. The danger zone is bottom-right (liquid, but not secure) — that's usually where new, hyped-up protocols end up.
Our strategy's protocols
Assessments verified 2026-09. ProtocolProtocolA smart-contract system that provides a DeFi service (e.g. Aave is a lending protocol).Read the lesson → TVLTVLTotal Value Locked — the total value deposited in a DeFi protocol. An indicator of how popular a protocol is. and risk ratings shift over time — check current figures on defillama.com.
| Protocol | Chain | Audited? | Running since | Risk tags |
|---|---|---|---|---|
| Aave | ETH | Many audits | Since 2020 | AUDITED |
| Uniswap V3 | ETH | Many audits | Since 2021 | AUDITED |
| Orca | SOL | A few audits | Since 2021 | AUDITED |
| Kamino | SOL | Many audits, solid TVLTVLTotal Value Locked — the total value deposited in a DeFi protocol. An indicator of how popular a protocol is. | Since 2022 | AUDITED |
| Deribit | CEXCEXCentralized Exchange — a centralized exchange (e.g. Nexo, Kraken, Binance). Requires KYC.Read the lesson → | Centralized exchange | Since 2016 | CEX |
| Meteora | SOL | AuditedAuditAn independent security review of smart-contract code. Not a guarantee, but it reduces risk.Read the lesson →, but newer | Since 2022 | NEW SC RISK |
| Uniswap V4 | ETH | AuditedAuditAn independent security review of smart-contract code. Not a guarantee, but it reduces risk.Read the lesson →, live since January 2025 — shorter history than V3 | Since 2025 | NEW SC RISK |
What do the risk tags mean?
| Tag | What it means | How risky |
|---|---|---|
| AUDITED | Many checks, long track record with no problems | Low risk |
| NEW | Newer protocol — shorter track record, less tested over time | Medium risk |
| SC RISK | Code is more complex than average | Medium-to-high risk |
| CEX | Centralized exchange — not DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson →. You depend on the company | Medium risk |
| BRIDGE | A bridge between networks. Historically the most exploited component | High risk |
The Biggest DeFi Hacks in History
This table shows how large the real-world losses have been:
First: bridge protocols (bridges between networks) dominate the list of biggest losses. BridgesBridgeA protocol that lets assets move from one blockchain to another. Historically the riskiest part of DeFi.Read the lesson → connect two different networks — that's technically very complex, and complexity is where most of the exploits live.
Our strategy doesn't use bridges directly. SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → positions stay on the SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson → network (KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson →, OrcaOrcaA Solana DEX with concentrated liquidity (Whirlpool). The basis of our LP strategy on the Solana network.Read the lesson →). ETH positions stay on the EthereumEthereumA blockchain with smart contracts. We use Aave (lending) and Uniswap (LP) on it.Read the lesson →/ArbitrumArbitrumAn Ethereum Layer 2 network. Cheaper and faster transactions than Ethereum mainnet.Read the lesson → network (AaveAaveEthereum lending protocol (v3). In our strategy: ETH collateral to a USDC loan.Read the lesson →). That reduces this risk.
Second: the most recent large losses were not code bugs. In the Drift case in 2026 the code was never broken — attackers spent roughly six months on social engineering and took over the human-held admin keys. So "audited and running for years" is no longer full proof of safety: you also have to look at who holds the keys.
A sixth kind of risk: admin key takeover and social engineering
Almost every protocol has a group of people (a multi-sig or a "security council") who can upgrade the code or pause the protocol. If an attacker tricks enough of those key holders, no code bug is needed at all.
Example: in April 2026 Drift (SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson →) lost around $285M exactly this way — after a long, patient social engineering campaign against the key holders.
What to check: how many signatures a change requires (2-of-3 is weak, 5-of-9 is stronger), whether there is a timelock (a delay that gives you time to exit), and whether the key holders all sit inside one team.
When you deposit into a lending protocol you take on the risk of every collateral asset that protocol accepts. In April 2026 AaveAaveEthereum lending protocol (v3). In our strategy: ETH collateral to a USDC loan.Read the lesson → depositors took real losses — not from a bug in AaveAaveEthereum lending protocol (v3). In our strategy: ETH collateral to a USDC loan.Read the lesson →'s code, but from a third-party collateral asset (rsETH) whose backing was broken on a bridge, leaving roughly $177M of bad debt.
So before depositing, don't only ask "is this protocol audited" — ask "what collateral does it accept, and what happens if one of those assets goes to zero".
Bridge Risk — Connections Between Networks
Imagine two islands (two networks). Each has its own currency. To move money from one island to the other, you use a ferry (a bridge). But if the ferry breaks down or someone hijacks it — your money disappears into the river.
A bridge is a protocol that moves assets between different networks — for example, from EthereumEthereumA blockchain with smart contracts. We use Aave (lending) and Uniswap (LP) on it.Read the lesson → to SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson →.
Why is a bridge dangerous?
- Complexity: it has to work correctly on two different networks at the same time
- Lock-and-mint: the original tokens are locked on one side and new ones are minted on the other. If the originals are stolen, the new ones become worthless
- Few guardians: many bridges are controlled by a small group of validators (e.g. Ronin had only 9, of which 5 were compromised)
Never move a large amount through a bridge in one transaction. If you need to move $10,000:
- Move $100 first and confirm it arrived
- Then move the rest in parts
- Best of all: keep SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → positions on the SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson → network, ETH positions on the EthereumEthereumA blockchain with smart contracts. We use Aave (lending) and Uniswap (LP) on it.Read the lesson → network, and avoid bridges altogether
Rugpull — When the Team Steals the Money
Imagine a new shop opens. It offers unbelievable discounts. People rush in and pay upfront. The next day, the shop is gone with all the money. That's a rugpull.
A rugpull is when a project's team deliberately builds a protocol just to collect investors' money and disappear.
How to spot a dangerous project
Anonymous team
If the team members aren't publicly known, the risk is much higher. Legitimate projects have public founders with LinkedIn profiles.
Anonymity doesn't automatically mean fraud (Bitcoin was created by an anonymous person). But for small projects, it's a big warning sign.
An unaudited smart contract
If the code hasn't been reviewed by independent experts (auditors), nobody knows whether it actually does what it claims. It might have a hidden backdoor — a secret function that lets the team take all the funds.
Unlocked liquidity
If the team can withdraw all the funds from the protocol at any time, they can simply walk away. Legitimate projects LOCK their liquidity so the team itself can't touch it.
Unrealistic promises
1000% APY, 'guaranteed returns', 'risk-free' — these are classic signs of fraud. Nothing in DeFi is guaranteed.
If it sounds too good to be true, it probably is.
Aggressive marketing
If a project invests more in influencers than in security and code, that's a very bad sign.
Unpublished code
If the program's code isn't publicly visible on Etherscan or Solscan, you can't see what it actually does. Legitimate projects always publish their code.
Liquidation Risk — When Your Collateral Gets Sold
When you borrow in DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson →, your collateral can be automatically sold if its value drops too far.
Imagine you took out a bank loan and put up your house as collateral. If the house's value fell sharply, the bank could force you to sell it to cover the debt. In DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson →, this happens automatically and within seconds.
How does liquidation work? An example:
- You deposit 126 SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → (example price $88) = $11,088 of collateral
- You borrow 4,704 USDCUSDCA USD stablecoin issued by Circle. Regulated, audited monthly. Our primary stablecoin and loan asset in the Kamino/Aave strategies.Read the lesson → (that's 42% of the collateral's value — called LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson →)
- The SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → price drops to $55 → your collateral is now worth only $6,930
- LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → rises to 68% — KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson →'s liquidation threshold for SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → collateral is 75%, so only 7 percentage points of buffer are left. That's no longer a "keep watching" zone, it's an "act now" zone
- LiquidationLiquidationWhen LTV exceeds the threshold and the protocol automatically sells your collateral to cover the debt.Read the lesson → kicks in once LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → goes above 75% — for this position that's roughly a $50 SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → price (4,704 USDCUSDCA USD stablecoin issued by Circle. Regulated, audited monthly. Our primary stablecoin and loan asset in the Kamino/Aave strategies.Read the lesson → / (126 SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → × 0.75)). Only then does the program automatically sell part of your SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson →
There is no single "KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson → threshold". Every collateral type has its own:
- SOL collateral: Max LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → 74% (the most you can borrow), liquidation threshold 75% (from here you can be liquidated)
- USDC collateral: liquidation threshold 90%
The gap between 74% and 75% is deliberately small: borrow to the maximum and you are already standing in the liquidation zone. So a safe working level is not "whatever is allowed" but well below it.
KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson → Lend runs as several dozen separate markets whose parameters are set by different curators. Before you open a position, check the threshold in the specific market you are opening it in. These figures were verified on 2026-09-05 via KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson →'s public API and do change over time.
On the DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → Risk OS platform (in development), the LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → indicator will be shown with colors:
- Green (under 40%): safe, liquidation is far away
- Yellow (40–55%): keep watching, but still fine
- Orange (55–65%): danger zone, action needed
- Red (over 65%): critical level, urgent action needed
Our strategy keeps LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → around ~42% — that leaves roughly a 44% price-drop buffer before the 75% threshold.
Above we used the plain LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson →: debt / collateral value. That is essentially how KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson → itself calculates it.
The DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → Risk OS platform will deliberately use a more conservative formula with two safety factors: LTV = (debt × 1.05) / (collateral × price × 0.90). The 1.05 leaves room for accrued interest, the 0.90 for oracle drift and a sudden price gap. Under that formula the same position would turn red at around $58 instead of $50.
That's not a contradiction — it's the size of the margin. Better to react a few dollars early than to find out about a liquidation after the fact.
Impermanent Loss — in LP Positions
When you provide liquidity (Orca, Meteora), you can experience impermanent loss — a reduction in your gains compared with simply holding the assets.
Imagine you have 10 apples and 10 pears. You hand them over to a market trader's stall. If the price of apples suddenly doubles, you would have earned more just by holding onto your apples. The gap between "what you'd have if you'd done nothing" and "what you have now" is impermanent loss.
But the trader's stall earns fees! If the fees cover the loss, you're still ahead.
Why is concentrated liquidity's IL bigger?
In our strategy, liquidity is provided in a narrower price range. That means:
- More fees (you earn more from a smaller range)
- Bigger impermanent loss (if the price moves out of your range)
In our strategy, the LPLPLiquidity Provider — deposits tokens into a pool and earns a share of trading fees.Read the lesson → position earns ~68% per year in fees (a live, changing snapshot — not a forecast). For the strategy to break even, it needs at least ~46% per year. Right now the LPLPLiquidity Provider — deposits tokens into a pool and earns a share of trading fees.Read the lesson → is earning 48% more than it needs (a coverage ratio of 1.48x) — that's a safety buffer.
Options Risk (Deribit)
Deribit is a centralized exchange — not DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson →. That means it carries a different kind of risk.
Exchange risks
- The exchange can collapse — as happened with FTX in 2022
- It can be banned in certain countries
- It can be illiquid — hard to close a position when there are no buyers
- Counterparty risk — if Deribitad fails to pay out, there's nothing you can do about it
Options position risks
| Position | Biggest risk | Worst-case scenario |
|---|---|---|
| Long PutPutAn option type that grants the right to SELL at a set price. Used as insurance.Read the lesson → (bought protection) | You lose the entire premium if the price doesn't fall enough | -$1,300 (the full amount paid) |
| Short PutPutAn option type that grants the right to SELL at a set price. Used as insurance.Read the lesson → (sold protection) | SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson →'s price falls sharply — you must buy at a high price | A large position around $60–65 |
| Short CallCallAn option type that grants the right to BUY at the strike price. The opposite of a put.Read the lesson → (sold upside) | SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson →'s price rises sharply — you must sell cheap | You sell SOLSOLSolana's native token. Used to pay gas and as collateral.Read the lesson → at $160 (even though it's worth more) |
How Much Money to Put Into DeFi?
The most important rule: never invest more than you can afford to lose.
The tables below are a general educational example, not personalized advice. If you're starting out, the right anchor is the bottom of the conservative profile, not the middle of it.
Conservative profile (cautious)
| Your assets | DeFi share | Maximum amount |
|---|---|---|
| Under $10,000 | 0–5% | $0–500 |
| $10,000–$50,000 | 5–10% | $500–5,000 |
| $50,000–$200,000 | 10–15% | $5,000–30,000 |
| Over $200,000 | 10–20% | $20,000–40,000 |
Moderate profile
| Your assets | DeFi share | Maximum amount |
|---|---|---|
| Under $10,000 | 5–10% | $500–1,000 |
| $10,000–$50,000 | 10–20% | $1,000–10,000 |
| $50,000–$200,000 | 15–25% | $7,500–50,000 |
| Over $200,000 | 15–30% | $30,000–60,000 |
Aggressive profile (bold)
| Your assets | DeFi share | Maximum amount |
|---|---|---|
| Under $10,000 | 10–20% | $1,000–2,000 |
| $10,000–$50,000 | 20–40% | $2,000–20,000 |
| $50,000–$200,000 | 25–40% | $12,500–80,000 |
| Over $200,000 | 20–40% | $40,000–80,000 |
Only invest money you don't need for everyday life. DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → isn't a bank with deposit insurance, so pick an amount such that even the worst-case scenario wouldn't change your day-to-day life. It's one sentence that protects you: I only invest what I can calmly walk away from.
Diversification — Don't Put All Your Eggs in One Basket
Even within DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson →, it's important to spread out risk:
- Network diversification: use both SolanaSolanaA fast blockchain (under 1s, gas under $0.01). Home to the Kamino, Orca and Meteora ecosystem.Read the lesson → and EthereumEthereumA blockchain with smart contracts. We use Aave (lending) and Uniswap (LP) on it.Read the lesson → — not just one
- Protocol diversification: use several protocols — KaminoKaminoSolana lending protocol. In our strategy: SOL collateral to a USDC loan.Read the lesson → + OrcaOrcaA Solana DEX with concentrated liquidity (Whirlpool). The basis of our LP strategy on the Solana network.Read the lesson → + DeribitDeribitA crypto options exchange. In our strategy this is where we buy put protection and sell covered calls.Read the lesson →
- Strategy diversification: use several strategies — A + B
- Time diversification: don't invest everything at once — spread it over several weeks
- Options diversification: hold protection (PutPutAn option type that grants the right to SELL at a set price. Used as insurance.Read the lesson →) alongside profit positions (Short CallCallAn option type that grants the right to BUY at the strike price. The opposite of a put.Read the lesson →)
Protocol Risk Map
Here's roughly how various places that hold money position themselves — by security and liquidity. Ideal: the top-right zone (secure + liquid).
This is an illustrative positioning for teaching purposes (like a "magic quadrant"), not exact data. "BridgeBridgeA protocol that lets assets move from one blockchain to another. Historically the riskiest part of DeFi.Read the lesson →" and new, unaudited protocols sit lower (riskier); old, audited protocols with high liquidity sit in the top right.
How DeFi Risk OS Will Help You Manage These Risks
Our platform is being built to help you see and manage these risks in real time. Planned features:
- LTV indicator — will show how close you are to liquidation (color-coded)
- Delta indicator — will show how much your portfolio depends on price movement
- Protection percentage — will show how much of your portfolio is protected by options
- Alerts — will automatically flag when something's off
- Scenario analysis — will show what would happen if the price fell -30% or rose +50%
- Breakeven calculator — will show the minimum yield your LPLPLiquidity Provider — deposits tokens into a pool and earns a share of trading fees.Read the lesson → needs to generate
Summary
- Smart contract risks: code bugs, reentrancy, price manipulation, flash loans, upgrade risk
- Bridge protocols are the most dangerous — avoid them where you can
- Check a protocol's audit history, age, and team
- Rugpull warning signs: anonymous, unaudited, unrealistic promises
- Liquidation risk is managed by keeping LTVLTVLoan-to-Value — the ratio of debt to collateral value. LTV 30% is considered safe. LTV 83%+ triggers liquidation.Read the lesson → low (~42% in our strategy)
- Impermanent loss is managed through higher fees
- Only invest what you can afford to lose
- On the DeFiDeFiDecentralized Finance — financial services without intermediaries, operating through smart contracts.Read the lesson → Risk OS platform, all risk indicators will be visible in real time
Risk management on the DeFi Risk OS platform
Understand DeFi risks? Once the platform launches, you will be able to monitor and manage them in real time.
For now, all of this is done by hand, as shown in the lesson.
Theory about risk fades — research you did with your own hands doesn't. Takes about 15 minutes, no funds need to go anywhere.
This is a research task — don't connect a wallet or invest anything anywhere. All the numbers and audits are public and need no login.
This is learning, not investing — use only small amounts you treat as tuition.
You just worked through the whole DeFi risk map — from smart contract bugs to liquidation — and you know how to manage each one. Most investors never learn this.