Yield Farming & Liquidity Providing
Liquidity providing mechanics, impermanent loss deep dive, farming strategies, pool selection, and risk/reward analysis.
From Thrive on YouTube
Watch the matching Thrive video
Reading the Order Book: Liquidity, Spreads and Getting Better Fills
Part of Order Types and Trade Management. Education only. Not financial advice.
What Is Yield Farming?
Yield farming is the practice of deploying crypto assets into DeFi protocols to earn a return. At its simplest, you deposit tokens into a lending protocol and earn interest. At its most complex, you layer multiple positions across protocols, leverage your deposits, and continuously rebalance to maximize annual percentage yield (APY). Yield farming is the DeFi equivalent of "putting your money to work."
Yield comes from multiple sources: trading fees earned by liquidity providers, interest paid by borrowers, protocol token emissions (reward tokens distributed to incentivize deposits), and arbitrage profits captured by aggregators. Understanding where the yield comes from is the single most important skill in yield farming. If you cannot identify the source of yield, you are the yield.
The golden rule of yield farming
Liquidity Providing Mechanics
When you provide liquidity to an AMM pool, you deposit two tokens in equal value. If you want to LP the ETH/USDC pool, you deposit $5,000 of ETH and $5,000 of USDC. In return, you receive LP (liquidity provider) tokens that represent your share of the pool. Every time someone swaps through the pool, a fee (typically 0.3%) is deducted from the trade and distributed proportionally to all LP token holders.
Your LP tokens are redeemable at any time for your share of the pool. But here is the catch: the ratio of tokens you get back depends on how the price has moved since you deposited. If ETH doubled in price, you will get back less ETH and more USDC than you deposited. This is impermanent loss, and it is the central trade-off of liquidity providing.
Impermanent Loss Explained
Impermanent loss (IL) is the difference in value between holding tokens in your wallet versus depositing them into a liquidity pool. It is called "impermanent" because if prices return to their original ratio, the loss disappears. But in practice, prices rarely return to exactly the same ratio, so the loss often becomes permanent.
The math behind IL follows directly from the constant product formula. When you deposit equal value of two tokens and one token's price changes relative to the other, the AMM automatically rebalances your position: selling the appreciating token and buying the depreciating one. You always end up with more of the cheaper token and less of the expensive one, compared to simply holding both.
| 1.25x price change | ~0.6% IL. If ETH moves from $3,000 to $3,750, you lose about 0.6% vs. just holding. |
| 1.5x price change | ~2.0% IL. ETH from $3,000 to $4,500. |
| 2x price change | ~5.7% IL. ETH from $3,000 to $6,000. At this point, fees need to be substantial to compensate. |
| 3x price change | ~13.4% IL. ETH from $3,000 to $9,000. Very difficult to recover from fees alone. |
| 5x price change | ~25.5% IL. In a major bull run on a volatile pair, IL can devastate your position. |
IL formula
Farming Strategies
Different pool compositions have radically different risk profiles. Your strategy should match your market outlook and risk tolerance.
Stable-stable pairs (lowest risk, lowest yield)
Blue-chip/stable pairs (moderate risk)
Volatile/volatile pairs (highest risk, highest yield)
Correlated pairs (smart middle ground)
Pool Selection Criteria
Higher TVL = more liquidity = lower price impact per trade = more volume = more fees for LPs. Below $1M TVL, pools are risky.
A pool with $10M TVL and $5M daily volume generates more fees per LP dollar than $10M TVL with $500K volume. Higher ratio = better.
Is the APY from trading fees (sustainable) or token emissions (temporary)? Emission-based APYs collapse when rewards end.
Stick to protocols with multiple audits, long track records, and significant TVL. Uniswap, Curve, Aave are battle-tested.
Higher correlation between tokens = lower IL. stETH/ETH has much less IL risk than DOGE/USDC.
On Ethereum mainnet, gas to enter/exit a pool can cost $20–100. On L2s, it costs pennies. Factor gas into your expected returns.
Real Yield vs. Emission-Based Yield
Real yield is profit generated by actual economic activity: trading fees, borrowing interest, liquidation bonuses. This yield is sustainable because it comes from users paying for a service. Emission-based yield is protocol tokens distributed to incentivize deposits. This yield is inflationary: the protocol is printing tokens and giving them to you. If everyone sells the reward tokens, the token price drops and the APY collapses.
The "DeFi Summer" of 2020–2021 was dominated by emission-based yield: protocols offering 1,000%+ APY to attract TVL. Most of those farms went to zero when emissions ended. The current market favors real yield: protocols that generate genuine revenue from fees and distribute it to token holders or LPs. When evaluating a pool, always ask: "What percentage of this APY comes from swap fees vs. token rewards?"
Compounding Strategies
Compounding means claiming your earned rewards and re-depositing them to earn yield on yield. On-chain compounding has a cost (gas per transaction), so you need to find the optimal compounding frequency where additional yield exceeds gas costs. Yield aggregators like Beefy Finance and Yearn automate this. They compound for all depositors in a single transaction, socializing the gas cost across the pool.
Compounding math
Put this lesson to work
Free on Thrive, no account needed.