返回 Expert 笔记
Expert Day 113

Vaults 与策略代币化 / Vaults & Strategy Tokenization

Yearn / Sommelier / Enzyme / Aera 四种 vault 架构对比,ERC-4626 标准

2026-08-22
Phase 2 - MEV与DEX量化 (Day 103-116)
VaultsYearnSommelierEnzymeAeraERC4626

日期: 2026-08-22 方向: MEV / DEX量化 阶段: Phase 2 - MEV与DEX量化 (Day 103-116) 标签: #Vaults #Yearn #Sommelier #Enzyme #Aera #ERC4626


今日目标 / Today's Objectives

类型内容
学习Yearn / Sommelier / Enzyme / Aera 四种 vault 架构对比,ERC-4626 标准
实操对比三个 vault 的 strategy 授权、risk control、fee 模型
产出vault_compare.md — vault 设计对比矩阵 + 机构选 vault 决策框架

1. 核心概念 / Core Concept

1.1 Vault 是什么

Vault: 把多个 user 的 deposit 聚合成一个 pool,由一个 strategy 操作(lend, LP, yield farm, MEV searcher 等),收益按 share 分配。

核心组件:

  • Deposit / Withdraw 接口(标准化为 ERC-4626)
  • Strategy contract (执行逻辑)
  • Fee structure (management + performance)
  • Access control (谁能操作 strategy)
  • Risk parameters (max drawdown, position limits)

1.2 ERC-4626 标准 (Tokenized Vault)

2022-04 推出,统一接口:

function asset() external view returns (address);
function totalAssets() external view returns (uint256);
function deposit(uint256 assets, address receiver) returns (uint256 shares);
function withdraw(uint256 assets, address receiver, address owner) returns (uint256 shares);
function previewDeposit(uint256 assets) view returns (uint256 shares);
function previewWithdraw(uint256 assets) view returns (uint256 shares);
function convertToShares(uint256 assets) view returns (uint256);
function convertToAssets(uint256 shares) view returns (uint256);

ERC-4626 让 vault share 变成可组合的 ERC-20,下游协议可以再封装(vault of vaults, LP token leverage, etc.)。

1.3 四大 Vault 架构对比

A. Yearn (yVault, V3)

设计哲学: "set and forget yield farming"
策略组合: 多 strategy per vault, gradient allocation
governance: YFI holder + multisig, 但 strategy 由 strategist 提交
fee: 2/20 (2% mgmt, 20% performance)
TVL: ~$300M (2025)
代码复杂度: 极高 (V3 重构, 模块化)

关键特性:

  • multi-strategy: 一个 vault 可同时跑 5+ strategy, 由 keeper 动态调权
  • strategist 经济: 第三方 strategist 可提交策略, 通过审核后 share performance fee

B. Sommelier (Cellar, ERC-4626 mover)

设计哲学: "AI-driven cross-chain strategy"
策略组合: 单 vault 可执行任意 ERC-4626/Aave/Curve/etc.
governance: SOMM token + Cosmos SDK (off-chain logic)
fee: 0.25-2% mgmt + 5-10% performance
TVL: ~$100M (2025)
代码复杂度: 中 (核心 cellar 合约 + Cosmos chain 控制)

关键特性:

  • 跨链原生: Cosmos chain 的 validator 跑 strategy, 通过 IBC 控制 EVM 合约
  • 白名单调用: cellar 只能调用预审计的目标合约 (e.g. Aave deposit, Uniswap swap), 防 strategist 跑路

C. Enzyme (formerly Melon)

设计哲学: "decentralized asset management for funds"
策略组合: 单 fund manager 完全控制
governance: 每个 fund 由 fund manager 治理, MLN token 治理协议
fee: 由 fund manager 自定义 (0-2% mgmt, 0-30% performance)
TVL: ~$200M (2025)
代码复杂度: 高 (整个 fund 框架, KYC/合规支持)

关键特性:

  • fund manager 模式: 类似传统对冲基金 manager-investor 关系
  • 合规支持: KYC、investor whitelisting、jurisdictional restrictions
  • policy framework: 可强制约束 manager (例: max 30% in any single asset)

D. Aera (Gauntlet 出品)

设计哲学: "automated treasury management for DAO"
策略组合: AI-optimized weight rebalancing (Balancer style)
governance: DAO owner (全权), guardian (限制变更)
fee: 协商 (Gauntlet 团队收 1-2%)
TVL: ~$500M (treasuries) (2025)
代码复杂度: 中 (基于 Balancer Managed Pool)

关键特性:

  • DAO treasury 专用: 服务 Aave / Lido 等大型 DAO 的 treasury 管理
  • slippage protection: rebalance 时强制 oracle-bounded execution
  • transparency: 所有 weight change 公开 + 链上历史

2. 架构对比矩阵 / vault_compare.md

# Vault Architecture Comparison Matrix

| Dimension       | Yearn V3    | Sommelier    | Enzyme       | Aera         |
|-----------------|-------------|--------------|--------------|--------------|
| Standard        | ERC-4626    | ERC-4626     | Custom + 4626| Balancer-based|
| Strategy actor  | Strategist  | Cosmos chain | Fund manager | Guardian + AI|
| Permissioning   | Multisig    | Whitelist    | Manager      | Owner+Guardian|
| Fee model       | 2/20        | 0.25-2/5-10  | Custom       | Custom       |
| Risk control    | Strategy    | Whitelist call| Policy framework| Slippage caps|
| TVL (2025-Q3)   | $300M       | $100M        | $200M        | $500M        |
| Compliance      | None        | None         | KYC supported| DAO-only     |
| Cross-chain     | No          | Yes          | Limited      | Same chain   |
| Strategy update | New deploy  | IBC msg      | Manager call | Guardian sig |

## Decision Tree (for asset owner)

私人投资者 → Yearn (low-touch, max yield)
DAO treasury → Aera or Enzyme
机构 fund (合规) → Enzyme
跨链 yield 玩家 → Sommelier
DeFi-native power user → Yearn V3 (custom strategy)

3. 简化 Yearn-style Vault 实现示例

// SimplifiedERC4626Vault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract YieldVault is ERC4626, Ownable {
    address public strategy;
    uint256 public performanceFeeBps = 2000;  // 20%
    uint256 public mgmtFeeBps = 200;          // 2%
    uint256 public lastReport;
    uint256 public storedTotal;

    constructor(IERC20 _asset, string memory _name, string memory _symbol)
        ERC4626(_asset)
        ERC20(_name, _symbol)
    {
        lastReport = block.timestamp;
    }

    function setStrategy(address _strategy) external onlyOwner {
        strategy = _strategy;
    }

    function harvest() external onlyOwner {
        // 1. Pull profit from strategy
        uint256 newTotal = IStrategy(strategy).estimatedTotalAssets();
        uint256 profit = newTotal > storedTotal ? newTotal - storedTotal : 0;
        
        // 2. Apply fees
        uint256 perfFee = profit * performanceFeeBps / 10000;
        uint256 elapsed = block.timestamp - lastReport;
        uint256 mgmtFee = newTotal * mgmtFeeBps * elapsed / (10000 * 365 days);
        
        uint256 totalFee = perfFee + mgmtFee;
        if (totalFee > 0) {
            uint256 shares = convertToShares(totalFee);
            _mint(owner(), shares);
        }
        storedTotal = newTotal;
        lastReport = block.timestamp;
    }
    
    function totalAssets() public view override returns (uint256) {
        return IStrategy(strategy).estimatedTotalAssets();
    }
}

interface IStrategy {
    function estimatedTotalAssets() external view returns (uint256);
}

4. 真实数据 / Real Data

Vault ProtocolTVL (2025-Q3)平均 APY主要 strategy 类型
Yearn V3$300M5-15%Curve LP, Aave lend, structured yield
Sommelier$100M6-12%Cross-chain real yield, V3 active mgmt
Enzyme$200MvariesFund-specific
Aera$500M4-8% (treasury-grade)DAO treasury rebalance
Mellow Vaults$400M5-10%LRT 重组, restaking
Sturdy V2$50M8-15%Isolated lending markets
Beefy$700M8-30%Multi-chain yield aggregator (high vol)

重要事件:

  • 2020-Q3: Yearn V1 上线, Andre Cronje 一战成名
  • 2022-Q1: Sommelier 上线, 引入跨链 vault concept
  • 2023-Q4: Aera 上线, Aave DAO 把 $50M treasury 委托给 Aera 管理
  • 2024-Q2: Yearn V3 重构, multi-strategy + ERC-4626 标准化
  • 2025-Q1: Mellow Vaults 凭借 EigenLayer LRT 火爆, 6 个月 $400M TVL

5. 经济学分析 / Economic Analysis

5.1 Vault 价值流向

User Deposit $1M → Vault →
  Strategy execution → Yield generated $X
  
  Fee distribution:
  - Mgmt fee (2% × time):   user 承担, vault DAO 收
  - Perf fee (20% × profit): user 承担, vault DAO 收
  - Strategist share (~5-10% of perf fee): 第三方 strategist 收
  
  User net yield = gross yield × (1 - perf_fee) - mgmt_fee
  
  典型: 10% gross → 7-8% net (after 2/20)

5.2 Vault 之间的竞争

核心 alpha 来源:

  1. Strategy alpha: 复杂策略的执行能力 (Yearn 强项)
  2. Cross-chain alpha: 跨链 yield 套利 (Sommelier 强项)
  3. Trust + 合规: 给传统资金 (Enzyme 强项)
  4. Treasury management: 给 DAO (Aera 强项)

长期趋势: 单纯 yield farming alpha 衰减, vault 必须找差异化:

  • AI 驱动 (Sommelier, Aera)
  • 机构合规 (Enzyme)
  • 主动 V3 LP (Arrakis, Gamma 单独类别)
  • LRT / restaking (Mellow, EtherFi)

5.3 ERC-4626 的可组合性溢价

ERC-4626 让 vault share 变成 LP 抵押品、tokenized fund 等。TVL leverage: 一个 yV3-USDC vault 的 share 可被 Sturdy 抵押再借 USDC, 形成"yield + leverage"。

实证: ERC-4626 兼容的 vault 比非兼容平均多 30% TVL。


6. 机构视角 / Institutional Perspective

机构如何选 vault:

机构类型推荐 vault关键考量
Family office (合规要求)Enzyme custom fundKYC, jurisdiction, audit trail
Crypto-native fundYearn V3 / SommelierAPI + ERC-4626 composability
DAO treasuryAera / Enzymetransparency + governance signing
HNW retailYearn V3 / BeefyUX + diversification
Restaking optimistMellow / EtherFiLRT 配置

机构 due diligence checklist:

  • Smart contract audit (Trail of Bits, OpenZeppelin, Spearbit 等顶级 auditor)
  • Strategy code 透明 + github
  • Multi-sig + timelock for upgrades
  • Insurance 覆盖 (Nexus Mutual, Sherlock)
  • Track record ≥ 6 months
  • TVL > $20M (尾部 risk)
  • Withdrawal queue / lockup 时间
  • Fee transparency

机构 PM 重要观察: ERC-4626 标准化后, vault as a primitive 已成熟, 接下来的差异化是 distribution channel。Coinbase 等 wallet vendor 把 Yearn vault 嵌入 UI → vault TVL 来自 wallet 用户而非 DeFi degen。


7. 风险与陷阱 / Risks & Pitfalls

  1. Strategy contract bug: vault 本身可能 secure, 但 strategy 调用的下游 protocol bug 致 vault 资产损失。Yearn 历史多次因此爆雷。
  2. Strategist rug pull: 第三方 strategist 提交恶意 strategy → 提走 vault 资金。Yearn V3 用 access control 缓解。
  3. Withdrawal queue: 大额 redemption 时 vault 必须 unwind position, 可能产生 loss。Mellow 上 stETH withdrawal 排队可达数周。
  4. Performance fee 高估: vault 用 share price 高水位线 (high-water mark), 但 short-term volatility 可能让用户实际净收益低于看到的 APY。
  5. Cross-chain 风险: Sommelier 等跨链 vault 引入 IBC / bridge risk。
  6. Composability 风险: vault share 被另一 vault 抵押, 一旦底层 vault 出问题, 链式爆雷 (类似 2022 Anchor → UST)。
  7. Oracle manipulation: 一些 vault 用 spot price 而非 TWAP 计算 share, 可能被 attack。

8. 关键速查 / Quick Reference

项目链接/合约
Yearn V3 docshttps://docs.yearn.fi
ERC-4626 standardEIP-4626
Yearn V3 Vault factory0x... (查 yearn.fi)
Sommelier Cellar core0xv0v0...
Enzyme docshttps://docs.enzyme.finance
Aera docshttps://docs.aera.finance
Mellow Vaultshttps://mellow.finance
Arrakis (V3 active)https://arrakis.finance
Sherlock (insurance)https://sherlock.xyz

9. 面试题 / Interview Questions

  1. ERC-4626 解决了什么核心问题?请举出 3 个非 ERC-4626 时代的痛点。
  2. 比较 Yearn V3 multi-strategy vault 与 Enzyme custom fund 的设计差异。哪个更适合机构资金?
  3. 设计一个 DAO treasury vault 的 governance 框架,要兼顾透明度、效率与风险控制。
  4. Vault yield 的可持续性核心问题是什么?为什么"高 APY"通常不可持续?
  5. 如果你是 a16z 的 GP,准备投资一家 vault 创业公司,你会问的 5 个尽调问题?

10. 明日预告 / Tomorrow

Day 114: 链上数据基础设施 — The Graph、Subgraph、Goldsky、Flipside SDK 是链上数据栈的 4 大支柱。我们将搭建一个 minimal subgraph 索引一个 DEX 池子的 swap 事件。