The PerpetualVault contract uses an incorrect import path for the IDataStore interface. While the contract compiles successfully, this could lead to interface mismatch issues and potential runtime errors if the wrong interface version is used.
MEDIUM - Potential runtime errors
Could call wrong interface methods
May miss critical interface updates
Potential for silent failures
Affects contract upgradability
Current implementation:
The correct path should be:
The issue stems from:
Incorrect relative path in imports
Missing package reference
No version control on interface imports
Update import paths to use correct package references:
Implement strict interface versioning
Add compile-time interface checks
Consider using Interface Registry pattern
Add automated import path verification in CI
Technical: Medium (interface mismatch)
Scope: Core contract functionality
Complexity: Low (configuration issue)
Contract imports
Interface definitions
Contract upgrades
Protocol integrations
Found: February 20, 2025
Reported: February 21, 2025
Fixed: Pending
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.