개요
The Mellow project provides an open platform for liquidity providers to earn rewards from their liquidities and strategists to earn performance fees by implementing active liquidity management strategies to manipulate the liquidities.
The core contracts covered in this audit include the Mellow Vault contracts in the code repository. The iterative audit covers the code in the initial version, as well as subsequent versions to fix discovered issues, as detailed in our audit report. Please note that external dependencies are assumed reliable and are therefore excluded from the audit scope.
Our audit methodology employs automated vulnerability scans, manual verification, and business logic analysis to uncover potential security issues coupled with gas and code quality optimization recommendations.
In summary, we did not find any critical issues within the audited codebase. However, we have identified nine non-critical issues that should be addressed. Additionally, we have put five recommendations to further strengthen the code logic. It is important to note that the scope of our audit was strictly limited to the specific code versions mentioned in the report. Any updates made subsequent to our review would require a re-evaluation.
주요 발견 사항
스마트 컨트랙트에서 잠재적인 문제 9건을 발견했습니다. 권고 사항 5건과 참고 사항 0건도 함께 정리했습니다.
| ID | Severity | Description | Category | Status |
|---|---|---|---|---|
| 1 | Low | Potential conflict of access control in LStrategy |
Software Security | Fixed |
| 2 | Low | Unchecked governance parameters | Software Security | Fixed |
| 3 | Medium | Lack of checks on the vault type for AggregateVault |
DeFi Security | Fixed |
| 4 | Low | Undetermined allocation for the liquidity mining rewards | DeFi Security | Acknowledged |
| 5 | Low | Potential dust tokens left in the vault | DeFi Security | Fixed |
| 6 | Medium | The delay mechanism to update the validator parameters could be disabled | DeFi Security | Fixed |
| 7 | Medium | Improper price calculation in the _getTvlToken0 function |
DeFi Security | Fixed |
| 8 | Low | Incorrect TVL calculation of the AAVE vault | DeFi Security | Fixed |
| 9 | Medium | Lack of access control for the new governance function | DeFi Security | Fixed |
| 10 | - | Remove unnecessary checks in ERC20RootVault | Recommendation | Acknowledged |
| 11 | - | Avoid using shadowed variables | Recommendation | Fixed |
| 12 | - | Use mulDiv to prevent precision losses |
Recommendation | Fixed |
| 13 | - | Fix incorrect event variables | Recommendation | Fixed |
| 14 | - | Inconsistent slippage checks in deposit and withdraw |
Recommendation | Acknowledged |
자세한 내용은 감사 보고서에서 확인할 수 있습니다.