Chainlink oracle adapters use hardcoded heartbeats of 4 hours and 4 days. However heartbeat on L2 oracles is much much less, for example it is 27 seconds for AAVE / USD on Polygon
As a result stale price will be used.
In folder protocol/contracts/libraries/Oracle
you can see it uses hardcoded timeouts LibChainlinkOracle.FOUR_HOUR_TIMEOUT
and LibChainlinkOracle.FOUR_DAY_TIMEOUT
when retrieves price from Chainlink
Protocol will use stale price
Manual Review
Do not hardcode usage of heartbeat because you're gonna deploy on L2.
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.