Core Contracts

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

The mint function within RAACNFT cannot retrieve the price when calling `tokenToHousePrice`

Summary

Upon the constructor deployment of RAACNFT.sol, we define the RAACHousePrices.sol contract within _housePrices. We then use this via an interface when declaring it under raac_hp. The intended usage here is so that when we mint, we can calculate the price accurately via tokenToHousePrice().

Vulnerability Details

Unfortunately, the RAACHousePrices.sol contract does not invoke a tokenToHousePrice function, yet it is included within the interface as the function signature is used to call the function.

function mint(uint256 _tokenId, uint256 amount) public override {
uint256 price = raac_hp.tokenToHousePrice(_tokenId);
}

Impact

Anyone who calls the mint() function will not be able to accurately calculate the price, and, by extension, the function call will revert because the intended function signature cannot be found within the main contract where the function should be declared within.

Tools Used

Manual review

Recommendations

Implement the tokenToHousePrice function with the relevant logic.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!