Level 4 · Money and marketsThe gold rush#297

DeFi risk checklist: ten checks before the machine gets your gold

Ten checks to run before you swap, lend, provide liquidity or farm in DeFi. Each one points to the article in this section that explains it, and each closes a door through which DeFi users lose money.

The boomtown has built its machines: one that swaps, one that lends, one that pays you for filling its strongbox. No clerk asks for your name. No clerk stops you from making a mistake either.

That's the deal in DeFi. The code does exactly what it says, and nobody reads it for you.

So here is the list. Ten checks, each pointing to the article in this section that explains it. Run them before you put gold in any machine, and again whenever you are told to hurry.

The 10-point check

1. Know what the machine does with your gold

Swap, lend, borrow, pool, farm: each carries different risks. If you can't say in one sentence what happens to your tokens after you click, stop. "DeFi explained" has the map.

Check: one sentence, written down, and an amount you could lose entirely.

2. Use the real shopfront

The contracts can be sound while the website is fake or tampered with. In December 2021, BadgerDAO users lost about $120 million through a compromised website, as "How DeFi protocols get hacked" tells.

Check: you typed the address yourself or used a saved bookmark, never a link from a message or an ad.

3. Approve the amount, not "unlimited"

Every machine asks permission to move your tokens. An unlimited approval stays open long after the swap. The article on token approvals explains why, and "DeFi aggregators" shows where they pile up.

Check: the approval equals the amount you're using, and old approvals are revoked.

4. Read the minimum, not the headline

Your swap reverts if it would return less than the minimum you accepted (Uniswap Developers, Swaps). A loose tolerance is an invitation to sandwich bots ("Slippage explained", "MEV explained"). For large swaps, a private route such as Flashbots Protect keeps your transaction out of the public mempool (Flashbots Docs); that is an example, not a recommendation.

Check: "minimum received" read, tolerance as tight as the trade allows, price impact under a percent or two.

5. Ask who pays the yield

If a rate is paid mostly in the protocol's own token, it is paid from new tokens, and their price can fall faster than the rate grows. "Yield farming explained" and "APR vs APY" do the arithmetic.

Check: you know how much of the rate is fees or interest and how much is reward tokens.

6. Know your liquidation price

If you borrow, a price fall can sell your collateral, with a bonus to whoever does the selling. "Collateral and liquidation explained" and "Lending and borrowing in DeFi" show how to read the numbers.

Check: the price at which you'd be liquidated, written down, and how far away it is.

7. Count what you'd lose by pooling

Providing liquidity means the pool sells your rising token and buys your falling one. "Liquidity pools explained" and "Impermanent loss explained" work it through.

Check: you compared the fees you expect with the loss at a 2x price move.

8. Look behind the curtain: keys, votes, prices

Who can change the contracts, and how fast? Compound, for example, makes a passed proposal wait two days in a timelock before it runs (Compound Docs). Where do prices come from? "Governance tokens and DAOs", "Oracles explained" and "Smart contract risks" cover the doors.

Check: audit date versus last code change, who holds admin keys, the timelock length and the oracle source.

9. Read TVL with the switches

TVL rises when prices rise and can count the same coins twice. DefiLlama keeps borrowed coins out of the headline "to avoid inflating it through cycled lending" and flags double counting (DefiLlama, Data definitions). "Reading a DeFi dashboard" explains the rest.

Check: TVL compared with inflows for the same period. Big is not the same as safe.

10. Read the exclusions if you buy cover

DeFi cover is often not insurance. Nexus Mutual's Protocol Cover excludes "phishing, private key security breaches, malware", price falls and "user interface or website errors" (Nexus Mutual, Protocol Cover terms). "DeFi insurance" has the full picture.

Check: the risk you fear is in the covered list, word for word.

Why it matters

None of these checks makes DeFi safe. Code can break in ways no user can see, as Euler's depositors learned in March 2023. What the list does is close the doors where most users lose money by their own click: the fake site, the open approval, the loose tolerance, the yield paid in confetti, the forgotten liquidation price.

Where people get it wrong

  • "It's audited, so I can skip the rest." An audit checks code on one date, not keys, websites or votes.
  • "I'll check after I deposit." Most of these checks are worth nothing afterwards.
  • "Small amounts don't need checks." Approvals and fake sites don't care how small you are.
  • "The saloon says it's safe." The saloon is paid in the token it's praising.

The assay office closes at your click

Print the list. Run it before the first deposit in any protocol, and again when something changes: a new version, a new chain, a new reward. If any check fails, the answer is not to look harder for a reason to go ahead. It is to keep your gold.

The machine never asks if you're sure. That's your job.

Frequently asked questions

What are the main risks in DeFi?

The main risks are bugs in the code, manipulated prices, stolen admin keys, captured governance, fake or tampered websites, and the user's own mistakes, such as unlimited approvals, loose slippage settings and borrowing too close to liquidation. Market risks such as impermanent loss and falling reward tokens come on top.

How do I check if a DeFi protocol is safe?

No check makes a protocol safe, but you can lower the risk. Look at when it was audited and whether the code has changed since, who holds the admin keys, how long changes wait in a timelock, where its prices come from, and whether you are on its official website.

Should I give unlimited token approvals in DeFi?

It is safer not to. An unlimited approval lets the contract move all of that token from your wallet later, so if the contract or website is ever compromised, everything is exposed. Approve the amount you are using and revoke old approvals.

Does DeFi insurance protect me from all losses?

No. Typical DeFi cover pays for code bugs and some economic attacks, but excludes phishing, lost keys, malware, price falls and website errors. Read the exclusions in the cover wording before you buy.

Is high TVL a sign that a protocol is safe?

No. TVL measures how much is deposited, in dollars, and rises with prices. It says nothing about the quality of the code, keys or governance, and a large TVL makes a protocol a bigger target.

Sources

  1. Uniswap Developers, Swaps (price impact, slippage, minimum output)
  2. Flashbots Docs, Flashbots Protect overview
  3. Compound Docs, Governance (v2)
  4. DefiLlama Docs, Data definitions
  5. Nexus Mutual, Protocol Cover terms and conditions (IPFS)

Read next.