RAACHousePrices
contract does not maintain different lastUpdateTimestamp
s for different tokens. It updates the same storage variable whenever the price of a house is updated, which returns wrong data to the viewers when getLatestPrice
function is called.
RAACHousePrices::setHousePrice
function updates the storage variable lastUpdateTimestamp
on being called. But according to the function's description, it should update timestamp for each token individually.
RAACHousePrices::getLatestPrice
function should also return the token-specific update timestamp, according to its description. But it returns lastUpdateTimestamp
, which is not token-specific.
Wrong information obtained on calling RAACHousePrices::getLatestPrice
Use a mapping for last update timestamps
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.