Home / Wiki / F / Farm

Farm

Cryptocurrency and Digital AssetsUpdated 13 Nov 2026

A farm, in decentralized finance (DeFi), is a reward programme run by a smart contract that pays users newly issued tokens for depositing assets, most often the liquidity-provider tokens they receive from a decentralized exchange (DEX). Exchanges such as PancakeSwap and SushiSwap list their farms on a dedicated "Farms" page, each showing the pool it rewards and an estimated annual return.

The word is informal crypto jargon, taken from yield farming, the wider practice of moving funds between protocols in search of the best returns. A farm is the individual product a yield farmer uses. It is related to, but different from, staking in the proof-of-stake sense, where tokens are locked to help secure a blockchain; farms are incentive schemes designed by an application to attract liquidity.

01

Farms in plain terms

Picture a new shopping centre that wants busy shops on opening day. It offers traders a deal: keep your stall stocked here, and every week we will give you vouchers that can be spent or sold. Traders flock in, the centre looks lively, and customers follow.

A crypto farm makes the same offer. A new exchange needs plenty of money in its trading pools so customers can trade without big price jumps. It pays the people who supply that money with its own freshly created tokens. The deal is attractive while the vouchers are worth something, but their value depends entirely on whether the centre succeeds.

02

How a farm works

  1. A user deposits two tokens into a liquidity pool on an automated market maker and receives a liquidity provider (LP) token recording their share.
  2. The user deposits the LP token into the farm contract. Single-token farms, often called pools, skip the first step.
  3. The contract releases a set number of reward tokens per block and divides them among depositors in proportion to their share of the farm.
  4. The user can claim ("harvest") rewards at any time and withdraw the LP token, which can then be redeemed for the underlying assets.

The displayed return is usually an annual percentage rate (APR) worked out from the current reward rate, the reward token's price and the amount deposited. Some interfaces show an annual percentage yield (APY) that assumes rewards are reinvested. Both figures change constantly, because more deposits dilute each user's share and the reward token's price moves. A liquidity provider in a farm also keeps earning trading fees from the underlying pool.

03

History

Farms grew out of "liquidity mining". In June 2020 Compound began distributing its COMP governance token to lenders and borrowers, setting off the period known as "DeFi summer". In August 2020 SushiSwap, a fork of Uniswap, launched a farm contract called MasterChef that paid SUSHI to users who staked Uniswap LP tokens, then moved their liquidity across, an episode widely described as a vampire attack. MasterChef-style contracts were copied across many chains, including PancakeSwap on BNB Chain, and Curve developed a system in which token holders vote on which pools receive the most rewards.

Automated vaults later took over much of the manual work. A yield aggregator deposits into farms on users' behalf, harvests rewards and sells or reinvests them on a schedule.

04

Risks

  • Reward token inflation. Farms pay with new tokens, and constant emissions push the token's price down unless demand keeps pace; many high advertised APRs collapsed within weeks. Supply design is part of a project's tokenomics.
  • Impermanent loss. LP farmers hold two assets in a fixed ratio and lose out compared with simply holding them when prices diverge.
  • Contract risk. Bugs or flawed reward maths in farm contracts have been exploited by hackers, sometimes to mint unlimited reward tokens.
  • Fraud. Anonymous copies of popular farm code have been used for rug pulls, in which the developers drain deposits or dump their token allocation. Checking for liquidity locking and audits reduces but does not remove this risk.
05

Regulation and tax

Farms run on public blockchains without a licensed operator, which makes them hard to fit into existing rules. Regulators have argued that reward programmes can amount to offering investment products when an identifiable team controls the protocol, and the EU's MiCA regime leaves fully decentralised services outside its scope while covering firms that offer them to clients. Many tax authorities treat farm rewards as income when received, with a further gain or loss when the reward tokens are later sold.

Last updated 13 Nov 2026