background
logo

Security Audit Report for Oripa's oripa-contract

DESCRIPTION

The target of this audit is the private code repository of oripa-contract of Oripa. 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 6 potential issues in the smart contract. We also have 3 recommendations and 5 notes, as follows:

High Risk: 0
Medium Risk: 1
Low Risk: 5
Recommendation: 3
Note: 5
ID Severity Description Status
1 Medium Misattribution of CCTP deposits in the function relay() Fixed
2 Low Potential DoS due to the improper rounding direction in the function _syncDebt() Fixed
3 Low Inconsistent remainder accounting after rate changes Fixed
4 Low Potential unfair reward distribution Confirmed
5 Low Potential DoS due to malicious session keys Fixed
6 Low Lack of USDC recovery mechanisms for messages with invalid hook data Fixed
7 - Avoid the reuse of retired session keys Confirmed
8 - Add zero-address checks in the contract CctpDepositReceiver Fixed
9 - Remove the redundant parameter of the event Minted Confirmed
10 - Ensure correct off-chain calculations -
11 - Avoid the use of 18-decimal reward tokens -
12 - Ensure correct runtime configurations -
13 - Timely updates of the variable minHouseReserve -
14 - Potential centralization risks -

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!