PlainCoin
Chapter 5 DeFi basics High risk

How yield farming works

Liquidity pools, reward tokens, impermanent loss, and why advertised APY is rarely what you actually earn.

The short version
  • You deposit two tokens into a liquidity pool; you earn trading fees plus bonus governance tokens — the source of the big APY.
  • Those governance tokens collapse when new depositors stop arriving, which they always eventually do.
  • Impermanent loss: if token prices diverge from when you deposited, you hold less of the winner than if you'd just held.
  • Smart contract bugs, anonymous teams, hidden leverage, and gas fees eat into returns — often entirely.

Yield farming pays users to provide liquidity — depositing token pairs into pools so others can swap between them. Returns come from trading fees and, often, bonus reward tokens.

01

How returns are generated

  1. Deposit two tokens (e.g. ETH + USDC) into an automated market maker pool.
  2. Earn a share of swap fees from traders using the pool.
  3. Often receive additional governance tokens as incentives — this is what drives headline APY figures.

Reward tokens only hold value while new depositors continue farming them. When inflows stop, token prices and APY typically collapse.

02

Impermanent loss

As token prices move, the pool rebalances automatically. If one token appreciates significantly, you end up holding more of the other token than if you had simply held both assets separately.

“Impermanent” loss only reverses if prices return to deposit levels. If they don’t, the loss is permanent. Farming rewards may or may not compensate.

03

Additional risks

  • Smart contract exploits draining pools
  • Anonymous teams abandoning projects (“rug pulls”)
  • Auto-compounders with hidden leverage
  • Gas fees consuming rewards on small positions
⚑ One honest flag

Treat yield farming as high-risk tactical activity, not passive income. Assume total loss is possible. If you cannot explain impermanent loss or identify the contract author, you are likely providing exit liquidity for someone else.

If this cleared something up, you can buy me a coffee.

Buy me a coffee Set your handle in src/components/TipJar.astro
← All guides