VaultAdvanced
Shadow Arena #009: Popcorn Protocol
Popcorn Protocol is a multi-chain yield-optimizing protocol built on Yearn V2 patterns. The architecture decouples the system into Vaults (ERC-4626 deposit layer), Adapters (yield source wrappers), Strategies (auxiliary logic executed via delegatecall), and a VaultController factory that clones and registers new vaults from approved templates. The protocol layers a MultiRewardStaking contract on top to distribute additional incentives in arbitrary reward tokens.
Scope (2694 SLOC)
| File | SLOC |
|---|---|
| src/vault/Vault.sol | 426 |
| src/vault/VaultController.sol | 520 |
| src/vault/adapter/abstracts/AdapterBase.sol | 405 |
| src/utils/MultiRewardStaking.sol | 311 |
| src/utils/MultiRewardEscrow.sol | 142 |
| src/vault/adapter/yearn/YearnAdapter.sol | 110 |
| src/vault/adapter/beefy/BeefyAdapter.sol | 145 |
| src/utils/TemplateRegistry.sol | 95 |
| src/utils/PermissionRegistry.sol | 45 |
| src/utils/CloneFactory.sol | 48 |
| src/utils/CloneRegistry.sol | 47 |
| src/vault/strategy/StrategyBase.sol | 60 |
| src/utils/AdminProxy.sol | 22 |
| src/vault/adapter/abstracts/WithRewards.sol | 18 |
| src/vault/adapter/abstracts/EIP165.sol | 15 |
| src/vault/adapter/abstracts/OnlyStrategy.sol | 12 |
| src/vault/strategy/RadiantUtilsStrategy.sol | 122 |
| src/vault/strategy/ConvexCompoundStrategy.sol | 152 |
Documentation
Part of the Uniswap V2 Path
This shadow audit connects to the Uniswap V2 Build module. Students who completed the CFAMM build have an advantage because they understand the core architecture.
View Build ModuleDuration7 days
Total Findings6
Scope2694 SLOC
PriceFree