Implementation family

Vaults

Vault implementations coordinate custody, share supply, lifecycle accounting, limits, strategy interactions, and emergency controls. This family teaches reviewers to reason from implementation responsibility before inspecting unfamiliar repository behavior.

Available4 mapped paths

Vaults skill tree

  1. Guided · 45 min

    Vault Fundamentals

    Available

    Learn what a Vault is, why it issues shares, and how users deposit and withdraw assets.

    Entry path

    View path
  2. Guided · 1h 50m

    ERC-4626 Core Mechanics and Security Invariants

    Available

    Complete the remaining Vault foundations by learning ERC-4626 entry and exit operations, asset-share conversions, preview and maximum functions, rounding direction, and the invariants that secure user value.

    1 prerequisite

    View path
  3. Guided · 1h

    BakerFi Leveraged Vault

    Available

    Learn how BakerFi separates vault share accounting from a leveraged strategy, how the strategy calculates net assets from collateral and debt, and how deposits and withdrawals convert between assets and shares. Then audit the completed implementation and determine whether an attacker can manipulate the share price and capture a disproportionate portion of a later depositor’s assets.

    Entry path

    View path
  4. Guided · 1h

    Popcorn: ERC-4626 Adapter Vault

    Available

    Reconstruct the core Popcorn vault implementation: an outer vault that routes assets into an ERC-4626 adapter, owns adapter shares, derives total assets from the adapter position, and charges fees by issuing vault shares. Follow the real deposit, mint, withdraw, and redeem flows before investigating the implementation in the lab.

    Entry path

    View path