Quick answer

A yield aggregator is a DeFi protocol that collects deposits into smart contract vaults and runs an automated strategy to earn yield on them, most often by repeatedly harvesting rewards and reinvesting them. Instead of claiming farm rewards, swapping them and re-depositing by hand, you deposit once and the vault handles the routine.

The appeal is convenience and efficiency: pooled deposits share the gas cost of each harvest, and frequent reinvesting turns a simple rate into a compounding one. The trade-off is another layer of smart contracts and fees between you and the underlying protocol, so understanding where the yield comes from matters more than the headline number.

The problem a yield optimizer solves

Many DeFi positions pay rewards separately from the principal. A liquidity provider on a decentralized exchange may earn trading fees plus incentive tokens that accumulate in a claimable balance. To make those rewards compound, a user has to claim them, sell part for the pool's two assets, add liquidity again and stake the new position. Each step costs a transaction fee.

For a small deposit, gas can eat most of the benefit, so people compound rarely or never. A yield optimizer pools thousands of deposits and performs that routine once for everyone, often several times a day. The cost of each harvest is spread across the whole vault, which makes frequent compounding practical. If you are new to the underlying activity, our guide to yield farming covers how farms and incentives work.

How DeFi vaults work step by step

  1. Deposit. You deposit an asset the vault accepts, such as a stablecoin, a single token or an LP token from a liquidity pool. This usually requires a token approval first.

  2. Receive vault shares. The vault mints share tokens representing your portion of the pool. On Ethereum-compatible chains many vaults follow the ERC-4626 tokenized vault standard, which defines how deposits, shares and withdrawals behave.

  3. Strategy deploys the funds. A strategy contract places the pooled assets into an underlying protocol: a lending market, a liquidity pool, a staking contract or a combination.

  4. Harvest. Periodically, a harvest transaction claims accumulated rewards, swaps them into the deposited asset and adds them back to the position. Anyone, or a keeper bot, may trigger it in exchange for a small bounty.

  5. Withdraw. When you return your shares, the vault burns them and pays out your portion of the now larger pool.

Your number of shares does not change after deposit. What grows is the value of each share, sometimes called the price per share. That is why a vault position can look flat in a wallet while its redeemable value increases.

Auto compounding and where the yield comes from

Auto compounding does not create income by itself. It only reinvests income produced elsewhere. The underlying sources are usually:

  • Trading fees paid by swappers to liquidity providers.

  • Lending interest paid by borrowers on lending markets.

  • Token incentives that protocols distribute to attract liquidity, which are often the largest and least durable part.

  • Staking rewards from validators, for vaults built on liquid staking tokens.

Example with hypothetical numbers. A pool pays a simple 20% APR in rewards. Claimed and reinvested once a year, it yields 20%. Compounded daily, it would come to about 22% APY before costs. The difference is real but modest, and it disappears if the reward token falls in price, because the incentive part is paid in that token. Our explainer on APR vs APY shows why compounding frequency changes the quoted figure.

Stacked layers with a blockchain at the base, a liquidity pool above it, a strategy gear and a vault on top, showing how yield aggregator risks stack up

Common vault strategy types

Single-asset vaults

You deposit one token, such as a stablecoin, and the strategy lends it or stakes it. These avoid impermanent loss, but returns tend to be lower and depend on borrowing demand.

LP auto-compounders

You deposit an LP token and the vault compounds farm rewards back into the pool. These carry the price exposure of both assets and the risk described in our guide to impermanent loss. A practical example is Beefy auto-compounding on Thena.

Leveraged and multi-step strategies

Some vaults borrow against deposits to recycle capital, or move funds between protocols to chase the best rate. They can quote higher yields but add liquidation and complexity risk.

Vault risks that stack up

A vault inherits every risk of the layers beneath it and adds its own. Thinking of it as a stack helps:

  • Base chain risk: outages, congestion or bridge failures for bridged assets.

  • Underlying protocol risk: a bug or exploit in the lending market or exchange the strategy uses.

  • Vault contract and strategy risk: errors in the aggregator's own code, a flawed strategy or poorly protected harvest swaps that are vulnerable to manipulation.

  • Admin and upgrade risk: who can change strategies or contract code, and whether changes go through a timelock.

  • Reward token risk: incentives may shrink, end or lose value.

  • Fee drag: performance fees on profits, and on some vaults deposit or withdrawal fees.

None of these risks is unusual on its own. The point is that they add up, and a high APY often signals that more of them are present.

Checklist before depositing into a yield aggregator

  • Identify the underlying protocol and the exact source of the yield.

  • Check how much of the APY comes from token incentives versus fees or interest.

  • Read the fee schedule: performance, deposit, withdrawal and harvest call fees.

  • Look for public audits, the age of the contracts and any past incidents.

  • Find out who controls upgrades and whether a timelock applies.

  • Review the token approval you grant and revoke it if you leave the vault.

  • Start small. DeFi yields change quickly and crypto is volatile, so do your own research.

FAQ

Is a yield aggregator the same as yield farming?

No. Yield farming is the underlying activity of earning rewards for providing capital. A yield aggregator automates that activity inside a vault and handles compounding for many users at once.

Why does my vault balance show the same number of tokens?

You hold vault shares, and their count stays fixed. Their value rises as the strategy compounds, so each share redeems for more of the underlying asset over time.

Can a vault lose money?

Yes. Price drops, impermanent loss, a falling reward token, an exploit or a strategy failure can all reduce or wipe out the value of a deposit.

What is a harvest fee?

Some vaults pay a small reward to whoever triggers the harvest transaction, funded from the harvested rewards. It encourages regular compounding without relying on one operator.

Are DeFi vaults better than staking directly?

Not automatically. Vaults can compound more efficiently but add contract risk and fees. Comparing the net yield after fees and the extra risk layers is the fair way to decide.