项目简介
The target of this audit is the private code repository of WcmAdapter Contract of Inverter Network. WcmAdapter is an incremental extension of the Bundler3 adapter system for World Markets on MegaETH. Bundler3 is built as a permissionless multicall dispatcher with adapterbased execution, transient initiator tracking, callback reentry support, and composable token movement across protocol integrations. This version introduces a dedicated adapter for the pinned USDm and wiTRY market, supporting exact-input and exact-output swaps through the World Markets router, balance-delta-based asset forwarding, bounded source-token refunds, and a Morpho debt repayment helper. The implementation also adds the required router interface and WCM-specific error handling while keeping router, chain, token, and market parameters fixed at deployment.
Please refer to the report for the detailed 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 some non-critical issues that should be addressed. Additionally, we have put forth recommendations and notes that should be taken into consideration. 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.
关键发现
我们在该智能合约中共发现 1 个潜在问题,另有 2 条建议与 3 条说明,明细如下:
| ID | Severity | Description | Status |
|---|---|---|---|
| 1 | Low | Lack of dust handling in function _swapExactIn() |
Fixed |
| 2 | - | Add codehash validation in function constructor() |
Fixed |
| 3 | - | Add balance checks in functions _swapExactOut() and _swapExactIn() |
Fixed |
| 4 | - | Integration assumption | - |
| 5 | - | Approve adapters as spenders | - |
| 6 | - | Refund logic in function buy() |
- |
更多细节见审计报告。