Independent discussion of crypto, wallets, cards and markets
Forum Home > DeFi & Yield > Yield Farming & Liquidity > Smart contract risk in farming: the stack of protocols you inherit
Smart contract risk in farming: the stack of protocols you inherit103 replies · 6,506 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

Smart contract risk in farming

Your yield sits on top of a stack of contracts, and every one of them is a way

to lose funds that has nothing to do with the market. Farming means inheriting

that whole stack.

The stack you inherit

A single farm can involve several contracts at once:

  • The exchange or pool contract holding your liquidity
  • A staking or wrapper contract if you stake the receipt token
  • The reward vault paying incentives
  • Any router or aggregator that moved your funds in
  • The underlying token contracts themselves

Each is code you do not fully control, and each can fail independently.

What contract risk means

  • A bug can drain or freeze funds, regardless of how the market moves
  • An upgrade can change behavior under your position
  • A dependency can fail: your position is only as safe as the weakest contract

it calls

  • Compounding stacks exposure, because more actions mean more contracts touched

The audit chain that matters

  • Audits reduce risk; they do not remove it, and they age
  • Check whether the contract has been through a real stress event, not just an

audit

  • Prefer protocols with a track record and time under pressure
  • Watch for unaudited or newly upgraded contracts offering high rates, because

the rate is compensation for unpriced risk

How to think about it

  • Map every contract between you and your yield before entering
  • Ask what happens to your funds if any one contract is exploited
  • Treat "audited" as a starting point, not a conclusion
  • Size positions so a contract failure is survivable

The takeaway

Farming is a chain of contracts, and the chain is only as safe as its weakest

link. The market risk is the part you can see; the contract risk is the part

that shows up without warning. Map the stack before you trust the rate.

Thread Statistics103 replies · 6,506 views