RAACPrimeRateOracle.sol has 2 state variable i.e
lastPrimearte and lastUpdateTimestamp.
both of these updated in _processResponse()
internal function which is called from BaseChainlinkFunctionsOracle.sol
But point is `RAACPrimeRate :: getPrimeRate()` fetch lastprimeRate and return it, it never checks for staleness of this value
lastPrimeaRate could be a stale value(old value)
manual review
Contract should implement a heartbeat (time period ) during which this lastPrimeRate
is valid and after completion of heartbeat period again request for new value.
When getPrimerate()
function called it lastUpdateTimestamp should check against heartbeat
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.