The LendingPool
might use stale prices for NFTs.
In LendingPool.sol
, there's a function called getNFTPrice
which fetches the price of an NFT from RAACHousePrices
:
The problem is that even though the lastUpdateTimestamp
is returned in the call to getLatestPrice
, the function does not check whether the price is stale by comparing it against a defined stale period. This allows the usage of outdated prices.
Since getNFTPrice
is used in getUserCollateralValue
and other functions to retrieve the value of the NFT, failing to check for the staleness of the price could result in using outdated prices, which might lead to incorrect collateral valuations.
Manual Review
Implement a check for a stale period to ensure that only fresh prices are used.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.