Core Contracts

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

RAACNFT contract doesn't allow batch minting as expected in documentation.

Summary

The RAAC protocol documentation stipulates:

"The RAACNFT is an ERC721 token representing real estate assets in the RAAC lending protocol. It implements minting functionality tied to house prices and allows for batch minting of NFTs."

and:

"Key features of the implementation include:

  • Implements batch minting functionality"

The RAACNFT contrat indeeds holds a currentBatchSize variable whose value is set to 3, that can be increased with the addNewBatch function:

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

The problem is that this variable is never used, and no batch minting mechanism is available in the contract.

Impact

The impact of this issue is medium as there is one key feature of the RAACNFT contract is missing in the current implementation.

Tools Used

Manual review

Recommendations

Add a batchMint function to allow batch minting. Also, currentBatchSize is not strictly necessary, batch minting could be variable in size. More documentation is required about the desired behaviour for batch minting.

Updates

Lead Judging Commences

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.