Found Academy useful? A $5 donation by May 14 helps us ship more, faster. Every donor counts (QF matching).

Donate
Shadow Arena/Shadow Arena #004: Flux Finance
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)

FileSLOC
contracts/lending/CTokenCash.sol687
contracts/lending/CTokenModified.sol690
contracts/lending/CCash.sol142
contracts/lending/CErc20.sol142
contracts/lending/JumpRateModelV2.sol103
contracts/lending/OndoPriceOracle.sol50
contracts/lending/OndoPriceOracleV2.sol158
contracts/cash/CashManager.sol600
contracts/cash/CashKYCSender.sol150
contracts/cash/CashKYCSenderReceiver.sol150
contracts/cash/KYCRegistry.sol200

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 Module
Duration2 days
Total Findings6
Scope4365 SLOC
PriceFree