The contract could add a sanity check to ensure price > 0
before setting it in RAACHousePrices
.
It could also validate lastHouseId > 0
to ensure it is a valid ID.
function _processResponse(bytes memory response) internal override {
uint256 price = abi.decode(response, (uint256));
housePrices.setHousePrice(lastHouseId, price);
emit HousePriceUpdated(lastHouseId, price);
}
check for price > 0
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.