LendingBeginner
Shadow Arena #004: Flux Finance
Flux Finance is a Compound V2 fork with KYC/sanctions checks, plus a CASH token minting and redemption system. The lending contracts are forked from Compound's cDAI. The scope spans both lending mechanics and the cash management layer. Some bugs are in the familiar Compound fork, others are in the novel CASH token system.
Scope (4365 SLOC)
| File | SLOC |
|---|---|
| contracts/lending/CTokenCash.sol | 687 |
| contracts/lending/CTokenModified.sol | 690 |
| contracts/lending/CCash.sol | 142 |
| contracts/lending/CErc20.sol | 142 |
| contracts/lending/JumpRateModelV2.sol | 103 |
| contracts/lending/OndoPriceOracle.sol | 50 |
| contracts/lending/OndoPriceOracleV2.sol | 158 |
| contracts/cash/CashManager.sol | 600 |
| contracts/cash/CashKYCSender.sol | 150 |
| contracts/cash/CashKYCSenderReceiver.sol | 150 |
| contracts/cash/KYCRegistry.sol | 200 |
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 ModuleDuration2 days
Total Findings6
Scope4365 SLOC
PriceFree