LendingAdvanced
Shadow Arena #006: Venus Isolated Pools
Venus is the largest lending protocol on BSC, forked from Compound V2. The Isolated Pools upgrade adds risk isolation between markets, bad debt auctions, and multi-chain deployment. The classic Compound fork mistake lives here: blocksPerYear designed for Ethereum's 15-second blocks, deployed on BSC's 3-second blocks. Interest rates are 5x what they should be.
Scope (3549 SLOC)
| File | SLOC |
|---|---|
| contracts/VToken.sol | 800 |
| contracts/Comptroller.sol | 700 |
| contracts/Pool/PoolRegistry.sol | 300 |
| contracts/Shortfall/Shortfall.sol | 250 |
| contracts/RiskFund/RiskFund.sol | 200 |
| contracts/Rewards/RewardsDistributor.sol | 300 |
| contracts/WhitePaperInterestRateModel.sol | 100 |
| contracts/JumpRateModelV2.sol | 100 |
Documentation
Part of the Compound V2 Path
This shadow audit connects to the Compound V2 Build module. Students who built the lending protocol have an advantage because they understand the core architecture.
View Build ModuleDuration7 days
Total Findings17
Scope3549 SLOC
PriceFree