background
logo

Security Audit Report for Inverter Network's WcmAdapter Contract

DESCRIPTION

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.

KEY FINDINGS

In total, we find 1 potential issues in the smart contract. We also have 2 recommendations and 3 notes, as follows:

High Risk: 0
Medium Risk: 0
Low Risk: 1
Recommendation: 2
Note: 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() -

More details are provided in the audit report.

Take the first step towards a secure future

Reach out now for BlockSec's expert code audit services, elevate the security of your protocol before it goes live!

Security Audit Report for Inverter Network's WcmAdapter Contract - BlockSec