Protocol use latestRoundData to get the current price of specific token in USD. However not check if the data is fresh especially on the side chain.
Per to chainlink document:
https://docs.chain.link/data-feeds/getting-started
If you are using Chainlink Data Feeds on L2 networks like Arbitrum, Optimism, and Metis, you must also check the latest answer from the L2 Sequencer Uptime Feed to ensure that the data is accurate in the event of an L2 sequencer outage
https://github.com/Cyfrin/2023-12-the-standard/blob/main/contracts/LiquidationPool.sol#L250#L241
In the function distributeAssets protocol get the current price in USD without check data.
Returning an incorrect price, such as 0, can result in the protocol losing funds
manury
check if the sequencer is down example:
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.