Overview
At Blaize, we take pride in securing the decentralized ecosystem, and our latest milestone was to conduct a comprehensive security audit for Promethium protocol. With a commitment to ensuring the safety and trustworthiness of DeFi projects, we meticulously examined both the smart contracts of Promethium and the backend rebalancer worker to identify vulnerabilities and provide actionable recommendations.
Task
During our audit, we scrutinized the smart contracts and the backend service for various vulnerabilities in several stages:
1) Standard smart contracts vulnerabilities checklists, including but not limited to:
- Reentrancy
- Gas limit and loops
- Transaction-ordering dependence
- Slippage tolerance
- Denial-of-Service (DoS) attacks
- Resistance against flash loans and frontrunning
- Storage issues (uninitialized, unused, etc) and incorrect local variable usage
- Upgradeability issues
and other potential Solidity vulnerabilities and attack vectors;
2) Business logic decompositions to find loopholes, deadlocks, hidden backdoors, incorrect math and calculations, malicious code injections, and other flow-related issues;
3) Review of the access control tree and roles distributions for smart contracts and correct integration of mulstisig components into the backend service
4) Review of dependencies, integrations, and 3rd parties, verified with appropriate integration tests;
5) Structure of the backend, the architecture of the sub-services, correctness of keys storage and usage;
6) Correctness of the APR calculations, the rebalance strategy, interaction between the backend and smart contracts, rebalancing routines;
7) Our own internal security checklists, additionally verified during the testing stage. The team had the main focus on verifying the correctness of implemented liquid staking mechanics.