Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Recursive Farming

A leveraged DeFi strategy where yield-bearing tokens from a farming position are used as collateral to borrow more assets and re-enter the same position, creating a compounding loop.
Chainscore © 2026
definition
DEFI MECHANISM

What is Recursive Farming?

A yield optimization strategy in decentralized finance (DeFi) that involves repeatedly leveraging the same capital across multiple protocols to compound returns.

Recursive farming is a sophisticated DeFi strategy where a user deposits an asset into a lending protocol to borrow a stablecoin or another asset, then uses that borrowed capital to farm additional yield, often by redepositing it into the same or a different protocol to repeat the cycle. This creates a leveraged position that amplifies both potential returns and risks. The process is 'recursive' because the output (rewards or borrowed assets) from one step becomes the input for the next, creating a feedback loop of capital deployment. It is a form of yield stacking or leveraged yield farming.

The mechanics typically involve a core set of DeFi primitives. A user might start by depositing ETH as collateral in a protocol like Aave to borrow a stablecoin like DAI. Instead of withdrawing the DAI, they deposit it into a liquidity pool on a decentralized exchange (DEX) like Curve to earn trading fees and liquidity provider (LP) tokens. These LP tokens can then be deposited into a yield farm on a platform like Convex to earn additional token rewards. Critically, those reward tokens can sometimes be sold for more of the original collateral asset, which is then redeposited to borrow more, continuing the cycle.

This strategy introduces significant risks, primarily smart contract risk across multiple protocols, liquidation risk if the collateral value falls below the required threshold, and impermanent loss for provided liquidity. The compounding effect of leverage means that small market movements can lead to disproportionate gains or losses. Furthermore, gas fees on networks like Ethereum can erode profits, making recursive farming most viable for large capital allocations or on lower-fee Layer 2 networks.

Recursive farming is often facilitated by specialized DeFi aggregators or vaults (e.g., Yearn Finance) that automate the multi-step process into a single transaction, managing the complex interactions and rebalancing. These automated strategies abstract the technical complexity but do not eliminate the underlying financial risks. The practice highlights the composability of DeFi, where protocols function as money legos, but also underscores the systemic fragility that can arise from highly interconnected and leveraged positions.

how-it-works
DEFINITION

How Recursive Farming Works

Recursive farming is a yield optimization strategy where a user repeatedly reinvests the yield rewards from a liquidity pool back into the same pool to compound returns.

At its core, recursive farming is a capital efficiency strategy that leverages automated market makers (AMMs). A user provides liquidity to a pool, earning liquidity provider (LP) tokens as a receipt. These LP tokens are then deposited into a separate yield farm or gauge to earn additional incentive tokens. The recursive mechanism activates when these newly earned tokens are automatically swapped back into the underlying pool assets and used to mint more LP tokens, which are again staked in the farm. This creates a feedback loop that continuously increases the user's staked position.

The process is typically managed by a smart contract or specialized protocol that automates the harvest-and-reinvest cycle. Key components include a router for executing swaps, a vault to manage the LP tokens, and often a keeper bot to trigger transactions at optimal intervals to maximize returns while minimizing gas fees. This automation is crucial, as manually performing these steps would be prohibitively expensive and time-consuming. The strategy's effectiveness hinges on the annual percentage yield (APY) of the farm and the frequency of the compounding cycles.

Recursive farming amplifies both potential returns and risks. The compounding effect can significantly boost yields, especially in high-APY environments. However, it also concentrates exposure to impermanent loss and the specific risks of the underlying DeFi protocols. If the value of the reward token depreciates rapidly or the farm's incentives dry up, the leveraged position can lead to amplified losses. Furthermore, smart contract risk is multiplied, as the strategy interacts with multiple, often complex, contracts in a single automated workflow.

This strategy is a foundational technique within DeFi yield aggregation. It is commonly employed by vaults on platforms like Yearn Finance or Beefy Finance, which abstract the complexity for end-users. Developers and protocol designers also use recursive farming mechanics to bootstrap liquidity for new tokens by creating powerful incentive loops. The concept demonstrates a key innovation in decentralized finance: using programmable money to create self-reinforcing economic systems that automatically optimize for capital growth.

key-features
MECHANISM DEEP DIVE

Key Features of Recursive Farming

Recursive farming is a DeFi strategy that amplifies yield by repeatedly leveraging the same capital across multiple protocols. This section breaks down its core operational components.

01

Capital Efficiency & Leverage

The primary driver of recursive farming is capital efficiency, allowing a single unit of capital to generate yield from multiple sources simultaneously. This is achieved through leverage, where a user's initial deposit is used as collateral to borrow more assets, which are then deployed into additional yield-bearing positions. This creates a compounding effect on potential returns, though it proportionally increases impermanent loss and liquidation risks.

  • Example: Deposit 1 ETH, borrow 0.5 ETH against it, and farm with the total 1.5 ETH.
02

Automated Position Management

Due to the complexity of managing collateral ratios, debt levels, and harvest timing, recursive strategies are typically executed by smart contracts or specialized yield aggregators. These protocols automate key functions:

  • Automatic compounding: Harvested rewards are sold and reinvested into the position.
  • Collateral rebalancing: Maintaining the loan's health factor to avoid liquidation.
  • Gas optimization: Bundling transactions to reduce network fees.
03

Protocol Stacking & Composable Yield

Recursive farming exploits the composability of DeFi by stacking protocols. A common stack involves:

  1. A lending protocol (e.g., Aave, Compound) to supply collateral and borrow assets.
  2. A liquidity pool (e.g., Uniswap, Curve) to provide liquidity with the borrowed assets.
  3. A liquidity mining program that distributes governance tokens (e.g., UNI, CRV) as an additional reward layer. The yield is 'composed' of interest, trading fees, and token incentives.
04

Risk Amplification & Cascading Liquidations

Recursive strategies non-linearly amplify risks. Key vulnerabilities include:

  • Smart contract risk: Bugs in any protocol in the stack can lead to total loss.
  • Oracle risk: Incorrect price feeds can trigger unjust liquidations.
  • Liquidation cascades: A market downturn can cause mass liquidations as collateral values fall, exacerbating price declines and triggering more liquidations—a systemic risk event.
  • IL + Leverage: Impermanent loss is magnified when the position is leveraged.
05

Economic Prerequisites

For a recursive farm to be profitable, specific economic conditions must hold, primarily a positive yield spread. This is the difference between the yield earned on the deployed assets and the borrowing cost (interest rate) of the loan.

  • Formula: Net Yield = (Total Farm APY) - (Borrow APY).
  • If the spread turns negative or the underlying token rewards depreciate faster than yield accrues, the strategy becomes unprofitable, leading to yield compression.
06

Related Concept: Delta-Neutral Strategies

Some advanced recursive farms aim for delta-neutral exposure to mitigate directional market risk. This involves taking offsetting positions (e.g., longing and shorting the same asset) so the strategy's profit is derived purely from the yield spread, not from asset price movements. These are complex to set up and maintain, often requiring perpetual futures contracts or options in addition to lending and AMM protocols.

visual-explainer
MECHANISM

The Recursive Loop Visualized

A conceptual model illustrating the self-reinforcing economic cycle at the heart of recursive farming strategies.

Recursive farming is a DeFi strategy where a user's yield-bearing assets are repeatedly leveraged to generate compounding returns. The core mechanism is a closed-loop system: a user deposits collateral (e.g., ETH) into a lending protocol like Aave to borrow a stablecoin, uses that stablecoin to purchase a liquid staking token (LST) like stETH, and then deposits that LST back into the lending protocol as additional collateral to borrow more. This creates a recursive loop where each cycle amplifies the user's exposure and potential yield, contingent on maintaining a safe collateralization ratio.

The loop's sustainability hinges on the positive yield spread—the difference between the yield earned on the deposited assets and the borrowing cost (interest rate). For example, if stETH yields 4% APY and borrowing DAI costs 2% APY, the 2% positive spread generates profit. However, this introduces significant risks: interest rate volatility can invert the spread, liquidation risk increases with leverage if asset prices fall, and smart contract risk is multiplied across multiple protocols. The loop must be actively monitored and managed.

Visualizing this process reveals its exponential potential and inherent fragility. A common diagram shows a circular flow between a lending vault, a liquidity pool, and a staking contract, with arrows representing the cyclical redeposit of rewards. Tools like DeFi Saver or Instadapp automate loop management, helping users optimize leverage and avoid liquidation. This model is foundational to advanced strategies like leveraged staking on Ethereum or yield optimization on Layer 2 networks, demonstrating how capital efficiency is maximized through recursive financial engineering.

examples
RECURSIVE FARMING

Protocols & Examples

Recursive farming is a DeFi strategy where yield-bearing assets are repeatedly used as collateral to borrow and farm additional yield. This section details the key mechanisms, prominent examples, and associated risks.

01

Core Mechanism: Collateral Loops

The strategy creates a collateral loop where a user deposits an asset (e.g., ETH) into a lending protocol to borrow a stablecoin. The stablecoin is then swapped for more of the original asset and re-deposited as collateral, repeating the cycle. This amplifies exposure and potential yield, but also leverage and liquidation risk.

  • Key Process: Deposit → Borrow → Swap → Re-deposit.
  • Primary Risk: Liquidation cascades can occur if the collateral asset's price falls, as each loop multiplies the debt position.
03

Curve Finance & Convex Finance

The Curve/Convex ecosystem is a major hub for recursive farming, often called "Convex Wars." Users lock CRV to get veCRV (vote-escrowed CRV), which generates protocol fees and boosts rewards.

  • Recursive Strategy: Deposit CRV → Mint cvxCRV (Convex's liquid wrapper) → Use cvxCRV as collateral on Abracadabra or other platforms to borrow stablecoins → Buy more CRV to repeat.
  • Goal: Accumulate more veCRV voting power and capture a larger share of protocol emissions and fees.
04

Abracadabra.money & MIM

Abracadabra pioneered "interest-bearing token (ibTKNs) as collateral." It allows users to deposit yield-bearing assets like yvUSDC (Yearn vault) or cvxCRV to mint MIM (Magic Internet Money), a stablecoin.

  • Classic Loop: Deposit yvUSDC → Borrow MIM → Swap MIM for USDC → Deposit USDC into Yearn to get more yvUSDC → Repeat.
  • Utility: This unlocks liquidity from otherwise locked yield, enabling complex, multi-protocol recursive strategies.
05

Risk: Liquidation & Protocol Dependency

Recursive farming introduces systemic risks beyond standard DeFi.

  • Health Factor Decay: Borrowing against volatile or depegging collateral (e.g., stETH during the Merge) can trigger rapid liquidations.
  • Smart Contract Risk: A bug or exploit in any single protocol in the stack (lending, DEX, yield aggregator) can compromise the entire leveraged position.
  • Gas Cost & Slippage: Each loop iteration incurs transaction costs, which can erode profits, especially on Ethereum mainnet.
06

Related Concept: Delta-Neutral Strategies

Advanced recursive farms often aim for delta-neutrality to hedge against the underlying asset's price risk, focusing purely on yield. This involves taking offsetting positions.

  • Example: Borrowing ETH against stETH collateral to farm, while simultaneously shorting ETH futures on a perp DEX.
  • Goal: Isolate and capture the funding rate or liquidity provider fees without exposure to ETH's price volatility. This requires precise management and monitoring.
security-considerations
RECURSIVE FARMING

Risks & Security Considerations

Recursive farming introduces unique systemic risks by layering yield-bearing assets as collateral, creating complex dependencies that can amplify losses during market stress.

01

Smart Contract Risk Amplification

Recursive strategies interact with multiple smart contracts (lending protocols, yield aggregators, DEXs). A vulnerability or exploit in any single contract can cascade, potentially draining funds across the entire recursive loop. This increases the attack surface significantly compared to a simple staking position.

02

Liquidation Domino Effect

The primary risk is a liquidation spiral. If the value of the collateral asset drops, it can trigger a margin call on the lending protocol. Forced selling to cover the debt can further depress the asset's price, triggering more liquidations in a self-reinforcing cycle. This risk is magnified by the high leverage inherent in recursive strategies.

03

Oracle Manipulation & Price Feed Risk

Recursive positions are critically dependent on price oracles (e.g., Chainlink) to determine collateral health. Manipulation of these price feeds—either through flash loan attacks or oracle latency—can cause inaccurate, premature liquidations of otherwise healthy positions, leading to total loss.

04

Protocol Dependency & Composability Risk

The strategy's viability depends on the continued operation and economic policies of all integrated protocols. Changes to interest rates, collateral factors, reward emissions, or fee structures on any layer can instantly make the recursion unprofitable or insolvent, as seen with platforms like Aave or Compound governance updates.

05

Impermanent Loss in Leveraged LP Positions

When recursion involves providing leveraged liquidity to Automated Market Makers (AMMs), users face amplified impermanent loss. Price divergence between the paired assets can result in losses that far exceed the generated yield, especially when combined with liquidation risk from the borrowed side of the position.

06

Gas Cost & Execution Risk

Managing a recursive position (depositing, harvesting, rebalancing, unwinding) requires multiple blockchain transactions. During network congestion, high gas fees can erase profit margins. Furthermore, transaction failure or front-running during critical operations like debt repayment can directly lead to liquidation.

MECHANISM COMPARISON

Recursive Farming vs. Standard Yield Farming

A technical comparison of capital efficiency and risk structures between recursive and standard yield farming strategies.

Feature / MetricRecursive FarmingStandard Yield Farming

Core Mechanism

Recycles yield-bearing assets as collateral to mint and re-deposit stablecoins

Deposits single asset or LP tokens into a farm to earn rewards

Capital Efficiency

Amplifies exposure via leverage; capital is reused

Linear; capital is deployed once

Primary Yield Source

Farming rewards + leveraged stablecoin farming APR

Base farming rewards (APR/APY)

Risk Profile

High (Liquidation risk, smart contract risk, oracle risk)

Medium (Impermanent loss, smart contract risk)

Complexity

High (Multi-step, requires active management)

Low to Medium (Single deposit action)

Typical APY Range

20% - 100%+ (variable with leverage)

5% - 30% (market-dependent)

Collateral Utilization

Yield-bearing assets (e.g., stETH, cvxCRV)

Native tokens or LP tokens

Liquidation Risk

Present (if collateral value falls below threshold)

Not applicable for single-sided; present for leveraged positions

RECURSIVE FARMING

Frequently Asked Questions

Recursive farming is a complex DeFi strategy that leverages yield-bearing assets as collateral to maximize returns. This section addresses the most common questions about its mechanics, risks, and practical applications.

Recursive farming (or leverage farming) is a DeFi strategy where a user repeatedly borrows against their yield-bearing collateral to acquire more of the same asset, amplifying their exposure and potential returns. The core mechanism involves a loop: a user deposits a yield-generating asset (e.g., a liquidity provider token) into a lending protocol as collateral, borrows a stablecoin against it, uses the borrowed funds to purchase more of the underlying asset, and then redeposits this new asset to repeat the cycle. This creates a leveraged long position on the underlying asset's yield and price appreciation, controlled by the collateral factor of the lending platform.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team