Auditor: Aayush
Protocol: Rari/Fuse (Compound Fork)
Date: April 19, 2025
Contract Audited: FusePoolDirectory.sol
Audit Type: Manual Code Review + Foundry-Based Testing
Status: β
Completed
This audit reviews the security, correctness, and gas efficiency of FusePoolDirectory.sol from Rari/Fuse Protocol.
The contract is responsible for creating and registering Fuse interest rate pools, and it uses a proxy pattern via Unitroller and Comptroller.
- Reentrancy protection added to
deployPool() - Contract validation and zero-address checks added
- Redundant storage writes optimized
- Event emission and pool duplication protections enforced
- 100% test coverage via Foundry
π Download the full audit report (PDF)
Foundry-based unit and fuzz tests covering:
- β Reentrancy protection
- β Input validation
- β Whitelist logic
- β Event emission
- β Gas optimization logic
π View Test Suite on GitHub Gist
- Foundry
- Slither (Static Analysis)
- Manual Code Review
- GitHub Actions (for CI)
If the protocol is upgraded to Solidity ^0.8.0, we recommend using custom errors instead of require() to save gas.
Security First. Gas Second. Clarity Always.