Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Inconsistency between documented total allocation (65%) and implemented allocation (65.1%) in `RAACReleaseOrchestrator.sol`. ##

Summary

Inconsistency between documented total allocation (65%) and implemented allocation (65.1%) in RAACReleaseOrchestrator.sol.

Vulnerability Details

The RAACReleaseOrchestrator.sol contract constructor initializes category allocations intended to represent 65% of the total token supply, as stated in documentation (RAACReleaseOrchestrator.md) and code comments. However, summing the individual category percentages in the constructor results in a total allocation of 65.1%, a slight discrepancy from the documented 65%.

Code Snippet:

// contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.sol
constructor(address _raacToken) {
// ...
// Initialize category allocations
categoryAllocations[TEAM_CATEGORY] = 18_000_000 ether; // 18%
categoryAllocations[ADVISOR_CATEGORY] = 10_300_000 ether; // 10.3%
categoryAllocations[TREASURY_CATEGORY] = 5_000_000 ether; // 5%
categoryAllocations[PRIVATE_SALE_CATEGORY] = 10_000_000 ether;// 10%
categoryAllocations[PUBLIC_SALE_CATEGORY] = 15_000_000 ether; // 15%
categoryAllocations[LIQUIDITY_CATEGORY] = 6_800_000 ether; // 6.8% (5.8% + 1%)
}//@lead total is supposed to be 65% but here its 65.1% ( chek docs )

Adding the percentages: 18% + 10.3% + 5% + 10% + 15% + 6.8% = 65.1%, not 65%.

Impact

  • Documentation Inconsistency: Discrepancy between code implementation and documentation can cause confusion and miscommunication.

  • Minor Deviation from Planned Distribution: Slightly more tokens are allocated in the initial distribution than documented (0.1% difference).

Tools Used

Manual code review and documentation review.

Recommendations

Verify the intended total allocation percentage for these categories.

  1. Correct Code to Match Documentation (if 65% intended): Adjust one or more category allocations in the constructor to ensure the sum is exactly 65%. For example, reduce ADVISOR_CATEGORY to 10.2% (10,200,000 ether).

  2. Update Documentation to Match Code (if 65.1% intended): Update RAACReleaseOrchestrator.md to reflect the 65.1% total allocation.

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.