Function getNFTPrice()
in LendingPool contract may return STALE price as there is NO validation being done on the lastUpdateTimestamp
Function getNFTPrice()
queries the oracle to fetch the latest price of the NFT.
Notice the return value lastUpdateTimestamp
. There is NO validation being done on this value as to when it was last updated.
Therefore, it is possible that it can return stale prices, which would later be used in other functions i.e. withdrawNFT()
or for calculation of collateral which leads to wrong accounting.
This leads to incorrect accounting of NFT collateral value.
Manual
Consider implementing a require check which ensures that the lastUpdateTimestamp
is reasonably close to current timestamp.
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.