Core Contracts

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

Allocations are meant to be immutable after initialization in `RAACReleaseOrchestrator`

Summary

Allocations are meant to be immutable after initialization in RAACReleaseOrchestrator but there is a function that allows changing it after initialization.

Vulnerability Details

From DOCS: Category allocations are immutable after initialization.

Function from RAACReleaseOrchestrator contract.

function updateCategoryAllocation(
bytes32 category,
uint256 newAllocation
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (categoryAllocations[category] == 0) revert InvalidCategory();
if (newAllocation < categoryUsed[category]) revert InvalidAmount();
categoryAllocations[category] = newAllocation;
emit CategoryAllocationUpdated(category, newAllocation);
}

We can see that allocation can be set after initialization.

Impact

Allocation can be changed after initialization which breaks protocol expected functionality.

Tools Used

Manual Review, Hardhat

Recommendations

Remove this function or change the docs if the allocations are meant to be changed.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 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.