LendingIntermediate
Shadow Arena #005: Canto v2 Lending Market
Canto's Lending Market is a Compound V2 fork with a twist: a custom algorithmic stablecoin (cNote), modified interest rate model where supply rate equals borrow rate, and generic ERC-20 reward distribution instead of COMP. The bugs are almost a syllabus for 'what goes wrong when you fork Compound V2 and modify the core parameters.'
Scope (2000 SLOC)
| File | SLOC |
|---|---|
| Lending/Comptroller.sol | 735 |
| Lending/CToken.sol | 500 |
| Lending/NoteInterest.sol | 100 |
| Lending/Accountant.sol | 150 |
| Lending/CNote.sol | 200 |
| Lending/Treasury.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 ModuleDuration4 days
Total Findings10
Scope2000 SLOC
PriceFree