> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theblockchainlibrary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Yield Farming

> Yield farming is a decentralized finance (DeFi) mechanism wherein users provide liquidity to a protocol by locking their cryptocurrency assets into smart contracts. In exchange for supplying these assets, which are utilized for purposes such as trading pairs, lending, or borrowin

# Yield Farming

Yield farming is a decentralized finance (DeFi) mechanism wherein users provide liquidity to a protocol by locking their cryptocurrency assets into smart contracts. In exchange for supplying these assets, which are utilized for purposes such as trading pairs, lending, or borrowing, users receive rewards, typically in the form of platform-native governance tokens or a share of transaction fees. This process incentivizes liquidity provision, ensuring that decentralized exchanges and lending markets have sufficient depth to operate efficiently while allowing participants to earn passive income on their held assets.

## Definition

Yield farming is a decentralized finance (DeFi) mechanism wherein users provide liquidity to a protocol by locking their cryptocurrency assets into smart contracts. In exchange for supplying these assets, which are utilized for purposes such as trading pairs, lending, or borrowing, users receive rewards, typically in the form of platform-native governance tokens or a share of transaction fees. This process incentivizes liquidity provision, ensuring that decentralized exchanges and lending markets have sufficient depth to operate efficiently while allowing participants to earn passive income on their held assets.

## Simple explanation

Imagine you have a magic bank account where you deposit your money, and instead of just sitting there, the bank uses it to help other people trade or borrow. Because you are letting them use your money to keep the bank running smoothly, they pay you extra coins as a thank-you gift. It is like putting your money to work in a garden where it grows more money over time, provided you help water the plants by keeping your funds deposited.

## Why it matters

Yield farming is the backbone of liquidity in DeFi, enabling decentralized exchanges to function without traditional market makers. It allows everyday investors to earn yields comparable to or exceeding institutional financial products, democratizing access to complex financial strategies.

## How it works

Users deposit crypto assets into a liquidity pool managed by a smart contract. The pool provides liquidity for traders, and in return, the contract mints governance tokens or collects fees that are distributed proportionally to the liquidity providers. As market demand fluctuates, the yield earned by participants changes based on the protocol’s specific reward algorithms.

## Real-world example

A user providing liquidity for an ETH/USDC pair on Uniswap and subsequently staking their LP tokens on a platform like Convex Finance to maximize rewards.

## Advantages

* Potential for high passive income
* Supports ecosystem liquidity
* Permissionless access to financial rewards

## Limitations

* Risk of impermanent loss
* Vulnerability to smart contract bugs
* High gas fees during market volatility

## Common misconceptions

* Many believe yield farming is a risk-free way to make money without consequences.
* People often confuse yield farming with simple staking despite the added complexities of liquidity provisioning.

## Related knowledge

* [Automated Market Maker](/generated/v2/glossary/automated-market-maker) — term
* [Impermanent Loss](/generated/v2/glossary/impermanent-loss) — term
* [Liquidity Mining](/generated/v2/glossary/liquidity-mining) — term
* [Staking](/categories/staking) — term

***

**Canonical knowledge ID:** `glossary:yield-farming`
