Yield Aggregator
A DeFi protocol that automatically moves funds between yield opportunities to maximize returns for depositors.
Key Takeaways
- A yield aggregator is a DeFi protocol that accepts user deposits into vaults, then automatically deploys capital across lending markets, AMM pools, and other protocols to chase the highest available returns.
- Auto-compounding is the core value: the aggregator harvests reward tokens, swaps them back to the base asset, and redeposits the proceeds, turning a 10% APR into 12-15% APY through high-frequency compounding while socializing gas costs across all depositors.
- Risk stacks with every layer: a single vault may interact with the aggregator contract, one or more lending protocols, a DEX for swaps, and an oracle for price feeds, meaning a bug in any one component can compromise all deposited funds.
What Is a Yield Aggregator?
A yield aggregator is a smart contract protocol that automates the process of finding, capturing, and compounding the highest available yields across DeFi. Instead of manually monitoring lending rates on Aave, swap fees on Curve, and reward emissions across dozens of protocols, a depositor places funds into a single vault and lets the aggregator handle the rest.
The concept emerged in 2020 when Andre Cronje launched Yearn Finance. At the time, DeFi users were manually rotating capital between Compound and Aave to capture the best lending rates: a tedious, gas-intensive process. Yearn automated this into a vault abstraction where users deposit one asset, receive a share token, and earn yield without further action. The model proved so effective that competitors like Beefy Finance, Convex Finance, and Sommelier soon followed, each with distinct specializations.
Today, yield aggregators collectively manage billions in deposits. Convex Finance alone holds roughly $1.75 billion in TVL, while Yearn manages several hundred million across its V3 vault architecture. For anyone exploring stablecoin yield strategies, aggregators offer one of the most accessible entry points.
How It Works
At its core, a yield aggregator wraps three operations into a repeating cycle: harvest, swap, and redeposit. Understanding this loop is key to understanding why aggregators outperform manual strategies.
The Vault Model
Users deposit a single asset (such as USDC) into a vault smart contract. The vault mints share tokens proportional to the deposit, following the ERC-4626 tokenized vault standard that Yearn V3 helped popularize. These share tokens represent a claim on the vault's growing balance. As the vault earns yield, each share becomes redeemable for more of the underlying asset.
Behind the vault sits one or more strategies: modular contracts that deploy capital into specific protocols. A Yearn stablecoin vault, for example, might allocate 28% to Morpho Blue lending, 20% to Pendle principal tokens, 10% to Sky Savings Rate deposits, and the remainder across leveraged lending positions. A Debt Allocator contract manages how capital is distributed based on target allocations and real-time rate data.
The Harvest-Swap-Redeposit Cycle
- Harvest: keeper bots call a harvest function on the vault when accrued rewards exceed the gas cost of the transaction. The contract collects reward tokens from every underlying protocol (CRV from Curve, COMP from Compound, MORPHO from Morpho, and so on).
- Swap: the harvested reward tokens are sold on a DEX for the vault's base asset. A vault denominated in USDC converts all rewards back to USDC.
- Redeposit: the swapped proceeds are added back to the vault's principal and redeployed into the active strategies. This is the compounding step: depositors now earn yield on both their original deposit and all previously harvested rewards.
Because the vault pools thousands of depositors into a single harvest transaction, gas costs are socialized. Manual yield farmers performing the same cycle individually might spend $50-$100 per week in gas on Ethereum L1. Aggregators cut that per-user cost by up to 90%.
Yield Sources
Aggregator strategies draw from four primary yield sources:
- Lending interest: paid by borrowers on protocols like Aave, Compound, and Morpho
- Swap fees: earned by providing liquidity to automated market maker pools on Curve, Uniswap, or concentrated liquidity platforms
- Basis-trade spreads: strategies that go long spot and short perpetual futures to capture the funding rate differential
- Tokenized-treasury coupons: yield from real-world assets like US Treasury bills wrapped as on-chain tokens
Pseudocode Example
A simplified vault harvest cycle looks like this:
// Vault harvest cycle (simplified)
function harvest() {
// 1. Collect accrued rewards from underlying protocol
uint256 rewardBalance = rewardToken.balanceOf(address(this));
underlyingProtocol.claimRewards();
// 2. Swap rewards to vault base asset via DEX
uint256 harvested = rewardToken.balanceOf(address(this)) - rewardBalance;
uint256 baseReceived = dex.swap(rewardToken, baseAsset, harvested);
// 3. Redeposit into strategy (compounds yield)
underlyingProtocol.deposit(baseReceived);
// Share token value increases: same shares, more underlying
emit Harvested(baseReceived);
}Major Platforms
Yearn Finance
The original yield aggregator. Yearn's V3 architecture uses a modular design where each strategy is itself a standalone ERC-4626 vault, allowing strategies to be shared across multiple vaults and deposited into directly by users. In January 2026, Yearn launched yvUSD: a cross-chain stablecoin vault running nine active strategies with zero management and zero performance fees, signaling a shift toward fee compression in the industry.
Beefy Finance
Beefy focuses on auto-compounding across the broadest multi-chain footprint of any aggregator, supporting roughly 25 blockchains including Ethereum, BNB Chain, Arbitrum, Base, Optimism, Polygon, and Avalanche. Users deposit LP tokens or lending positions, and Beefy handles claiming, selling rewards, and redepositing automatically.
Convex Finance
Convex is specialized: it exists to maximize returns for Curve Finance liquidity providers. Convex pools veCRV voting power to unlock boosted CRV rewards for users without requiring them to lock CRV tokens themselves. With roughly $1.75 billion in TVL, it is the largest yield aggregator by deposits.
Sommelier
Built on Cosmos SDK with a bridge to EVM networks, Sommelier differentiates through off-chain computation. Strategy rebalancing calculations happen off-chain using machine learning models, and a validator set reaches consensus on the rebalance before executing on-chain. This enables sophisticated time-series forecasting and dynamic leverage optimization that would be impossible to run entirely on-chain.
Stablecoin Yield Strategies
Yield aggregators are particularly popular for stablecoin yield strategies because they eliminate the friction of manually rotating between lending protocols as rates change. A stablecoin vault might earn 3-12% APY depending on the platform and risk profile, compared to sub-1% rates available in traditional savings accounts.
Yearn's yvUSD vault illustrates the approach: it allocates USDC across Morpho Blue lending (around 3.8% APY), Pendle principal tokens (around 8% APY), Sky Savings Rate deposits (around 3.8% APY), and leveraged Morpho positions (up to 10.8% APY). The vault's Debt Allocator continuously rebalances across these strategies based on real-time rates.
For a broader view of how stablecoin yields are generated across DeFi, see the stablecoin yield landscape research article. Users interested in how stablecoins maintain their pegs while generating yield should also explore yield-bearing stablecoins explained.
Fee Structures
Aggregators charge fees that typically come in two forms: a management fee (annual percentage of total deposits) and a performance fee (percentage of harvested profits). The fee range across the industry:
| Platform | Performance Fee | Management Fee | Other Fees |
|---|---|---|---|
| Yearn V3 | Customizable (V2 was 20%) | Customizable (V2 was 2%) | Protocol fee on reports |
| Beefy | 4.5% of harvested rewards (typical) | None | Up to 0.1% withdrawal |
| Convex | 16% of CRV revenue | None | None |
| Harvest | 5% of yield | None | None |
Displayed APY figures on most platforms already account for performance fees, meaning the rate shown is the net return to depositors. The effective yield to users is typically 80-95% of the gross strategy yield after all fees.
Use Cases
- Passive stablecoin income: depositors seeking yield on USDC, USDT, or DAI without actively managing positions across multiple lending markets
- LP reward optimization: Curve and Uniswap liquidity providers who want their reward tokens auto-compounded rather than sitting idle
- Treasury management: DAOs and protocols deploying idle treasury funds into diversified yield strategies
- Gas cost reduction: users on Ethereum L1 who would otherwise spend significant gas fees harvesting and compounding manually
- Cross-chain yield: protocols like Beefy and Yearn's yvUSD enable depositors to access yield across multiple chains from a single vault interface
Risks and Considerations
Smart Contract Risk Stacking
This is the defining risk of yield aggregators. A single vault may interact with four or more protocol layers: the aggregator contract itself, the underlying lending protocol, a DEX for swaps, and an oracle for price feeds. Each layer introduces its own smart contract surface area. A bug in any single component can compromise all deposited funds. Yearn's yvUSD, for example, runs nine active strategies, each with its own contract dependencies.
Oracle Manipulation
Aggregator strategies depend on accurate price data from oracles. If an oracle delivers manipulated data, it can trigger unfair liquidations or enable exploits. The Harvest Finance attack of October 2020 is a textbook example: an attacker used a $50M flash loan to manipulate prices on Curve's Y Pool, draining roughly $24 million from Harvest vaults in seven minutes. For more on this attack vector, see the oracle manipulation glossary entry.
Impermanent Loss Exposure
Strategies that deploy capital into liquidity provider positions expose users to impermanent loss. If the tokens in a pair diverge in price, the LP position's value can lag behind simply holding the tokens separately. Stablecoin-only pools minimize this risk but do not eliminate it entirely, especially during depeg events.
Notable Exploits
Yield aggregators have been targeted in several high-profile attacks. Beyond the Harvest Finance incident, Yearn Finance suffered a $9 million exploit in November 2025 when a numerical bug allowed an attacker to mint septillions of yETH tokens after depositing only 16 wei. In 2023, an older Yearn yUSDT contract was exploited for $11.6 million through a similar token-minting vulnerability. These incidents underscore how complex vault architectures create a wider attack surface.
Leverage and Liquidation Risk
Some aggregator strategies employ leverage to amplify returns. In stressed markets, leverage amplifies losses and can trigger cascading liquidations. Strategies using fixed-maturity instruments like Pendle principal tokens also carry duration risk: early exits require selling at market prices, potentially at a loss.
MEV and Front-Running
Vault harvest transactions are predictable and often profitable targets for MEV extraction. Sandwich attacks can exploit the swap step of the harvest cycle, reducing the amount of base asset the vault receives. Some aggregators mitigate this by using private mempools or MEV-protected DEX routes for their swaps.
Yield Aggregators vs. Manual Yield Farming
The tradeoff is straightforward: aggregators sacrifice some yield to fees in exchange for automation, gas savings, and compounding efficiency. High-frequency auto-compounding has been shown to boost final returns by 30-40% compared to manual methods, which often more than offsets the 5-20% performance fee. Manual farmers retain full control over risk exposure and pay no performance fees, but face significant time costs and gas overhead, particularly on Ethereum L1.
A common hybrid approach: experienced DeFi users allocate the majority of capital to established aggregators for set-and-forget yield, while reserving a smaller portion for manual positions targeting specific opportunities in newer protocols.
Why It Matters
Yield aggregators democratize access to sophisticated DeFi strategies. Before aggregators, capturing the best available yield required constant monitoring, technical expertise, and enough capital to justify gas costs. Aggregators collapse that complexity into a single deposit action.
For stablecoin holders in particular, aggregators represent a practical path to earning yield that exceeds traditional finance alternatives. As the stablecoin yield landscape continues to mature, understanding how aggregators work (and the risks they introduce) is essential for anyone deploying capital in DeFi.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.