A DeFi vault is a smart contract that automatically manages a yield-generating strategy on your behalf. You deposit assets, the vault executes a pre-programmed strategy (auto-compounding, rebalancing, optimizing across protocols), and you earn yield without manual intervention. Yearn Finance popularized this pattern; Beefy, Sommelier, and others have expanded on it.

What Is a Vault (In the DeFi Sense)?

3 min read

The short version

A DeFi vault is a robot farmer. You drop off your crops (tokens), the robot plants them in the best fields, harvests at optimal times, replants the earnings, and hands you the final harvest when you come back. You pay a small fee for the robot's services, but save yourself the daily work of managing it all manually.

How It Works

Vault architecture: (1) Users deposit a single asset or LP token into the vault contract. (2) The vault's strategy contract deploys those assets according to programmed logic (e.g., stake in Curve, earn CRV, sell CRV for more of the base asset, restake, compound). (3) Harvesting happens periodically (triggered by keepers or on a schedule). (4) Vault share tokens (yTokens, mooTokens) represent your proportional claim, and their value increases over time as profits are reinvested. (5) Withdrawal: redeem your vault tokens for underlying assets + accrued profits. Fee structure: typically 0-2% management fee + 10-20% performance fee (taken from profits only). Auto-compounding eliminates the gas cost of individual users claiming and restaking manually, which is the primary value-add for smaller depositors.

Depositing into a Yearn USDC vault

You deposit 10,000 USDC into the Yearn USDC vault. You receive yvUSDC tokens at the current exchange rate (say 1 yvUSDC = 1.08 USDC, reflecting past accumulated profits). The vault strategy currently: lends USDC on Aave (3% base), stakes the Aave receipt token for AAVE rewards, sells AAVE for USDC weekly, and redeposits. Net APY to depositors after fees: ~4.5%. After 6 months: the yvUSDC/USDC rate has grown to 1.103. Your yvUSDC redeems for 10,000 × (1.103/1.08) = ~10,213 USDC. Profit: $213 with zero manual management. The vault handled all harvesting, selling, and redepositing automatically.

What People Get Wrong

  • Vaults are risk-free savings accounts

    Vaults add smart contract risk (vault code bugs, strategy code bugs, underlying protocol bugs). You are exposed to every protocol the vault interacts with. A bug in any layer can result in fund loss. Start with established, audited vaults.

  • Vault APYs are guaranteed

    Vault yields are projections based on current strategy performance. Rates fluctuate as market conditions change. A vault showing 8% today might show 3% next month if the underlying strategy becomes less profitable.

  • You can withdraw from vaults instantly

    Most vaults allow instant withdrawal, but some lock-up vaults (for strategies requiring fixed positions) have withdrawal queues or notice periods. Check the specific vault terms before depositing.

Sources & Further Reading

Questions People Also Ask

What is the difference between a vault and just staking?
Staking earns one source of yield (protocol rewards). Vaults combine multiple yield sources, auto-compound, and optimize across protocols. Vaults are more complex (more risk layers) but potentially higher yield and lower maintenance for the user.
Are vault fees worth paying?
For small positions: absolutely. If the vault saves you $10-50 in gas per harvest cycle, and harvests weekly, that is $500-2,500/year in gas savings alone. For large positions ($100K+): the math is closer and manual management might beat fees. Calculate your specific break-even.
Which vault platforms are most trusted?
Yearn Finance (longest track record, Ethereum-focused), Beefy Finance (multi-chain, large selection), and Sommelier (institutional-grade strategies). All have been operating for years with significant TVL. Newer platforms may offer higher yields but carry more smart contract risk.

More in Staking & Yield

See all →
Was this page helpful?

Page last checked