DESCRIPTION
The target of this audit is the private code repository of KBAR of DuboisGold. KBAR is an upgradeable ERC721 contract representing ownership of physical gold bars held in custody. The system integrates role-based administration with transfer-time compliance controls and fee mechanisms. Administrative roles manage minting, redemption, freezing, fee configuration, storage-fee enforcement, pausing, and upgrades.
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 2 potential issues in the smart contract. We also have 2 recommendations and 1 notes, as follows:
| ID | Severity | Description | Status |
|---|---|---|---|
| 1 | Low | Lack of operator freeze check in the function _update() |
Fixed |
| 2 | Low | Unfair storage fee accrual logic | Confirm |
| 3 | - | Inconsistent transfer eligibility validation | Partially |
| 4 | - | Add recipient freeze check to the function safeMint() |
Fixed |
| 5 | - | Potential centralization risks | - |
More details are provided in the audit report.