What Is a Vault in DeFi and How Does It Compound Yield?
A yield vault is an automated investment strategy that collects deposits, puts them to work in one or more DeFi protocols, and reinvests whatever it earns to generate compound returns. The vault does the repetitive work of claiming rewards, swapping them, and redepositing them so the depositor does not have to do it manually.
How a vault is structured
A vault is a smart contract that holds your deposited tokens. When you deposit, you receive vault shares. Those shares represent your portion of the total pool. As the vault earns yield, the value of each share rises. You can withdraw at any time for the current share value, minus any fees the vault charges.
The vault operator - which may be a DAO, a team, or an anonymous developer - sets the strategy. That strategy determines which protocols the vault interacts with, how often it compounds, and what fees it takes. Some vaults use a single strategy, like depositing into a lending market. Others chain multiple steps: lend on Aave, take the aToken, deposit it into a Curve pool, stake the LP token, and reinvest the rewards.
Where the yield actually comes from
Vaults do not create yield. They are wrappers around existing yield sources. The same risks that apply to the underlying protocols apply to the vault. Common sources include:
- Lending interest - Borrowers pay interest on assets lent through protocols like Aave or Compound. The vault deposits your tokens there and collects that interest.
- Trading fees - The vault may deposit into a liquidity pool on Uniswap, Curve, or Balancer. It earns a cut of the swap fees that traders pay.
- Liquidity mining incentives - Protocols distribute their own governance tokens to attract liquidity. The vault claims those tokens and often swaps them into more of the deposit asset.
- Liquid staking yield - The vault may deposit into a liquid staking token like stETH or rETH and collect the staking rewards from Ethereum validators.
The combined yield is the sum of these sources, minus the vault’s fees and any losses from the underlying positions.
How compounding works in practice
Compound yield means earning yield on previously earned yield. In DeFi, it requires a series of actions: claim rewards, swap them to the deposit asset if needed, and redeposit that asset back into the strategy.
A manual compounder must do this themselves, paying gas fees and transaction costs each time. A vault automates the process. The frequency matters. Compounding once per week will produce a lower effective APY than compounding once per day, but each compound action costs gas. Vaults batch all user deposits together and execute one compound transaction for everyone, splitting the gas cost among all depositors.
The vault’s smart contract typically triggers compounding on a schedule - every few hours, once per day, or when a certain threshold of yield has accumulated. Some vaults let you see the current compound interval in the UI or in the contract’s read functions.
The risks that are specific to vaults
Vaults inherit all the risks of the protocols they use. But they add their own.
- Smart contract risk - The vault itself is an extra layer of code. A bug in the vault’s logic can lock funds or send them to the wrong address. Audits reduce this risk but do not eliminate it. Check the audit reports for the vault contract, not just the underlying protocols.
- Strategy risk - The vault operator can change the strategy without warning if the contract permits it. This is sometimes called “rug-pull risk by strategy shift.” A vault that originally deposited into a conservative lending pool might be redirected into a high-risk farm. Read the contract’s upgrade mechanisms. If the vault uses a proxy pattern, the operator can swap the entire strategy code.
- Harvest timing risk - If a vault compounds infrequently, a large depositor can front-run the harvest. They withdraw right before compound, taking a share of the yield without paying the compounding cost, while other depositors bear the gas. This is a form of value extraction called “harvest manipulation.”
- Withdrawal fee or delay - Some vaults charge a fee on withdrawal or impose a cooldown period. This can lock your funds during a market crash. Check the vault’s terms before depositing.
How to Evaluate a Vault Before Depositing
Do not rely solely on the displayed APY. That number is backward-looking and often includes temporary liquidity mining rewards that will drop to zero. Instead, check these points:
- Identify the underlying strategy. Find the exact sequence of contracts the vault uses. Trace the deposits: token A → lending protocol B → LP token C → farm D. Verify each step yourself on a block explorer.
- Read the vault’s audit. Look for the audit report on the vault contract, not just the protocols it uses. Note what the audit covered and what it did not. If the vault has no audit, treat that as a major red flag.
- Check the fee structure. Vaults typically charge a performance fee (a percentage of yield) and a management fee (a percentage of total value locked). Common ranges are 10 - 20% performance fee and 0 - 2% management fee. Higher fees eat compound returns significantly over time.
- Review the upgrade mechanism. If the vault uses a proxy contract, the operator can change the logic. If it is immutable, the strategy is locked. Decide which you prefer.
- Look at historical TVL and yield. A vault that suddenly spikes in TVL might be attracting yield farmers who will dump rewards, driving down the token price and reducing your effective yield. Check the vault’s page on DeFiLlama or a similar tracker.
Vaults are a convenience tool. They save you gas and time, but they do not eliminate risk. The yield you see is not guaranteed. The underlying protocols can fail, the strategy can shift, and the vault contract can have bugs. Treat each vault as a new investment decision, not a set-and-forget account.
Not financial advice. brooder.tech publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.