DeFi

Yield Farming

Yield farming (also called liquidity mining) is the practice of deploying crypto assets across DeFi protocols to maximise returns — moving capital between lending pools, liquidity pools, and staking programs to chase the highest available APY, often reinvesting rewards automatically through compounding strategies.

What Is Yield Farming?

Yield farming is the active practice of deploying cryptocurrency assets across multiple decentralised finance (DeFi) protocols to maximise total returns. The term emerged during DeFi Summer 2020 when Compound Finance began distributing COMP governance tokens to lenders and borrowers on its platform — users discovered they could earn trading fees, lending interest, and governance token rewards simultaneously by providing liquidity to DeFi protocols. The practice of moving capital between protocols to find the highest yield quickly became known as yield farming or liquidity mining.

At its simplest, yield farming involves: depositing assets into a DeFi protocol (a lending market like Aave, a liquidity pool like Uniswap, or a yield vault like Yearn Finance), earning protocol-native rewards (trading fees, interest, governance tokens), and reinvesting those rewards to compound returns. At its most complex, it involves multi-step strategies across dozens of protocols simultaneously — borrowing at 3% to lend at 8%, providing liquidity to newly launched pools with high token incentives, looping collateral deposits to maximise incentive payouts, and constantly rebalancing as rates change.

Core Yield Farming Mechanisms

Liquidity provision (LP rewards): Depositing two assets into an AMM liquidity pool (e.g., ETH + USDC on Uniswap v3) earns a share of trading fees proportional to your share of the pool. Concentrated liquidity (Uniswap v3 style) allows LPs to concentrate capital in a specific price range, earning higher fees for a given capital amount when price is within range — but earning nothing when price moves outside range.

Token incentives (liquidity mining): Protocols distribute governance tokens to users who provide liquidity — a user acquisition and liquidity bootstrapping strategy. Early Compound, Uniswap, and Curve distribution events created enormous yields (sometimes 100–1000% APY in terms of USD value at token launch prices). These high yields attracted capital, which improved protocol liquidity, which attracted users — a positive feedback loop during protocol launch phases.

Lending and borrowing loops: Some yield strategies involve borrowing against deposited collateral, using borrowed assets to generate yield elsewhere, and repaying the loan from that yield. For example: deposit ETH as collateral on Aave (earn supply APY + AAVE tokens), borrow USDC at 3% (earning AAVE borrow rewards), deposit borrowed USDC into a Curve USDC pool earning 5% + CRV tokens. Net yield is positive if total earned exceeds borrowing cost — but the strategy amplifies liquidation risk if collateral value drops.

Yield Aggregators: Automating the Strategy

Manually moving capital between protocols to capture the best yield is time-consuming and expensive (gas costs). Yield aggregators automate this process: Yearn Finance (yVaults) deploys deposited assets into the highest-yielding strategy for that asset, automatically harvesting rewards and compounding. Convex Finance maximises CRV yield from Curve LP positions by boosting rewards through aggregated CVX/CRV locking. Beefy Finance (multi-chain) automatically compounds LP rewards across 20+ blockchains. Users deposit assets once and the aggregator handles strategy rotation and compounding — earning a performance fee (typically 10–20% of yield) as compensation.

Risks of Yield Farming

Impermanent loss: Providing liquidity to an AMM pool exposes LPs to impermanent loss — the difference between holding assets outright versus holding them as LP position when prices diverge. If you deposit ETH+USDC when ETH = $3,000 and ETH later goes to $6,000, your LP position will hold less ETH and more USDC than if you had simply held — the protocol sold ETH as it appreciated. IL only "realises" when you exit the pool; while in the pool, high trading fees can offset IL.

Smart contract risk: All yield farming involves trusting smart contract code. Rug pulls (developers drain the contract), exploits (hackers find logic bugs), and oracle manipulation attacks have drained billions from yield farming protocols. In 2022 alone, over $3 billion was lost to DeFi exploits. Higher APYs often correlate with higher smart contract risk — new, unaudited protocols offering 500% APY are not a gift, they are a risk premium.

Governance token depreciation: Many yield farming strategies rely on earning governance tokens as incentives. If the token value drops — which is common after initial launch excitement — strategies that appeared to offer 50% APY in token terms may deliver far less in USD terms. Always evaluate APY in both token denomination and USD denomination.