Core Contracts

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

Missing getLatestPrice implementaion

Summary

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/pools/LendingPool/LendingPool.sol#L592
In the protocol there seems to be no implementation of the getlatestPrice from the oracle, However, while getting the NFT price we call to the `priceOracle.getLatestPrice(tokenId)` given that the implementation of the getPrice was never done in the priceOracle then getting the price will be impossible, because at the moment we only have an interface with the implementation below
```javasctipt
function getLatestPrice(uint256 _tokenId) external view returns (uint256, uint256);
```
If an attempt to get the NFT price this will fail because there is nowhere the get latest price has been implemented in the contract

Vulnerability Details

Impact

getLatestPrice function is never implemented so the price will never be returned

Tools Used

manual Review

Recommendations

Add the correct implementation of the `getlatestPrice` function

Updates

Lead Judging Commences

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

Support

FAQs

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