Skip to main content

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

Watch the series
Reading the Order Book: Liquidity, Spreads and Getting Better Fills

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

If you cannot explain where the yield comes from in one sentence, do not deposit. Legitimate yield comes from: (1) borrowers paying interest, (2) traders paying swap fees, (3) protocols distributing tokens to attract liquidity. If the answer is "new depositors pay old depositors," that is a Ponzi scheme.

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

IL = 2 × √(price ratio) / (1 + price ratio) − 1. This produces a negative number representing the percentage loss vs. holding. Note: IL is always negative. You are always worse off than holding when price moves in either direction. The only question is whether fees earned exceed the IL.

Farming Strategies

Different pool compositions have radically different risk profiles. Your strategy should match your market outlook and risk tolerance.

1

Stable-stable pairs (lowest risk, lowest yield)

Pools like USDC/USDT, USDC/DAI, or FRAX/USDC. Because both tokens are pegged to the same value, price divergence is minimal and impermanent loss is near zero. Yields typically range from 2–8% APY. This is the "savings account" strategy for DeFi. Best on Curve Finance which is optimized for stable swaps.
2

Blue-chip/stable pairs (moderate risk)

Pools like ETH/USDC or BTC/USDC. You have exposure to crypto price movement (one side is volatile), so impermanent loss is a real factor. Yields range from 5–20% depending on volume and incentives. This strategy works best in range-bound markets where the volatile asset does not make extreme moves.
3

Volatile/volatile pairs (highest risk, highest yield)

Pools like ETH/ALT or ALT/ALT. Both sides are volatile and can diverge significantly. Impermanent loss can be severe if one token pumps while the other dumps. Yields can exceed 50%+ APY but are often offset by IL. Only suitable if you have conviction in both tokens and want exposure to both.
4

Correlated pairs (smart middle ground)

Pools like stETH/ETH, cbETH/ETH, or wBTC/BTC. Because the tokens are derivatives of the same underlying asset, they are highly correlated and IL is minimal. Yields come from swap fees during minor de-pegs. A sophisticated low-risk strategy.

Pool Selection Criteria

TVL depth

Higher TVL = more liquidity = lower price impact per trade = more volume = more fees for LPs. Below $1M TVL, pools are risky.

Volume/TVL ratio

A pool with $10M TVL and $5M daily volume generates more fees per LP dollar than $10M TVL with $500K volume. Higher ratio = better.

APY sustainability

Is the APY from trading fees (sustainable) or token emissions (temporary)? Emission-based APYs collapse when rewards end.

Protocol reputation

Stick to protocols with multiple audits, long track records, and significant TVL. Uniswap, Curve, Aave are battle-tested.

Token pair correlation

Higher correlation between tokens = lower IL. stETH/ETH has much less IL risk than DOGE/USDC.

Chain and gas costs

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

A 20% APY compounded daily becomes ~22.1% effective APY. A 50% APY compounded daily becomes ~64.9%. The higher the base APY, the more compounding matters. For positions under $10K on Ethereum mainnet, use an auto-compounder: manual compounding gas costs will eat your returns. On L2s and Solana where gas is cheap, you can compound manually at higher frequencies.

Put this lesson to work

Free on Thrive, no account needed.