Shadow Arena/Shadow Arena #009: Popcorn Protocol
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)

FileSLOC
src/vault/Vault.sol426
src/vault/VaultController.sol520
src/vault/adapter/abstracts/AdapterBase.sol405
src/utils/MultiRewardStaking.sol311
src/utils/MultiRewardEscrow.sol142
src/vault/adapter/yearn/YearnAdapter.sol110
src/vault/adapter/beefy/BeefyAdapter.sol145
src/utils/TemplateRegistry.sol95
src/utils/PermissionRegistry.sol45
src/utils/CloneFactory.sol48
src/utils/CloneRegistry.sol47
src/vault/strategy/StrategyBase.sol60
src/utils/AdminProxy.sol22
src/vault/adapter/abstracts/WithRewards.sol18
src/vault/adapter/abstracts/EIP165.sol15
src/vault/adapter/abstracts/OnlyStrategy.sol12
src/vault/strategy/RadiantUtilsStrategy.sol122
src/vault/strategy/ConvexCompoundStrategy.sol152

Documentation

Part of the Yearn V2 Path

This shadow audit connects to the Yearn V2 Build module. Students who completed the vault-strategy build have an advantage because they understand locked-profit reporting, gain/loss accounting, and strategy chains.

View Build Module
Duration7 days
Total Findings6
Scope2694 SLOC
PriceFree