Core Contracts

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

Missing Batch Mint Functionality

01. Relevant GitHub Links

02. Summary

The documentation states that RAACNFT supports batch minting, but the code does not provide any function to mint multiple tokens at once. The only related feature is a function to adjust the currentBatchSize, but there is no mechanism to utilize it for batch minting.

03. Vulnerability Details

The documentation for RAACNFT states that it supports batch minting.

Allow for batch minting of NFTs

The contract has a currentBatchSize variable and a function addNewBatch to increase this value.

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

However, there is no code that uses this variable to perform any batch operations. Despite the documentation mentioning batch minting, the functionality is not implemented, leading to a discrepancy between the documented features and the actual contract behavior.

04. Impact

  • The codebase lacks the functionality to mint multiple NFTs in a single transaction, which could cause confusion or missed opportunities for more efficient minting flows.

05. Tools Used

Manual Code Review and Foundry

06. Recommended Mitigation

Implement a batch mint function or remove references to batch minting from the documentation. If batch minting is intended, create a function that uses the currentBatchSize to mint multiple tokens in a single transaction.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Design choice
inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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