When protocol is deployed to L2 chains, additional sequencer status check is required before consuming any oracle data to avoid false liquidations or over-minting DSC stablecoin.
As stated in discord channel, protocol is assumed to be deployable to any EVM chain.
When deployed to optimistic L2 chains, OracleLib.staleCheckLatestRoundData()
doesn't check if L2 sequencer is active or not.
If the L2 sequencer goes offline, it might result in an invalid or outdated price returned by the oracle.
Invalid/stale price if sequencer isn't online.
Manual review.
It is recommended to follow the code example of Chainlink:
https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
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.