Core Contracts

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

Inability to Track Per-Token Update Timestamps in `RAACHousePrices::lastUpdateTimestamp`

Summary

The variable RAACHousePrices::lastUpdateTimestamp is globally updated instead of being mapped to individual tokens, making it impossible to track the update timestamp for each token.

Vulnerability Details

function setHousePrice(
uint256 _tokenId,
uint256 _amount
) external onlyOracle {
tokenToHousePrice[_tokenId] = _amount;
lastUpdateTimestamp = block.timestamp; <==@found
emit PriceUpdated(_tokenId, _amount);
}

Impact

  • Unable to track the update timestamp for each token

Tools Used

  • Manual Review

Recommendations

Replace the global lastUpdateTimestamp with a per-token mapping:
mapping(uint256 tokenId => uint256 lastUpdateTimestamp) public tokenToLastUpdateTimestamp;

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACHousePrices uses a single global lastUpdateTimestamp for all NFTs instead of per-token tracking, causing misleading price freshness data

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACHousePrices uses a single global lastUpdateTimestamp for all NFTs instead of per-token tracking, causing misleading price freshness data

Support

FAQs

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

Give us feedback!