Core Contracts

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

Unchecked Array Length in Batch Operations Low Risk

Summary

The addNewBatch function in RAACNFT only checks if the batch size is non-zero but doesn't check for reasonable upper limits:

function addNewBatch(uint256 _batchSize) public override onlyOwner {
if (_batchSize == 0) revert RAACNFT__BatchSize();
currentBatchSize += _batchSize;
}

Impact

While this might not lead to direct security vulnerabilities, it could result in operational issues:

1. An excessively large batch size could make batch operations too gas-intensive to execute

2. The currentBatchSize could grow unreasonably large over time if not properly managed

3. No checks for arithmetic overflow in the addition operation

Tools Used

Manual review

Recommendations

Add validation checks to make sure it's within reasonable upper limits

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 4 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.