The current code uses Chainlink Oracles for price feeds. However, according to the Chainlink documentation(https://docs.chain.link/data-feeds/l2-sequencer-feeds), it's recommended to check if the sequencer is operational when using Oracles on Layer-2 (L2) networks.
The Chainlink Oracle provides a method for verifying the status of the sequencer, which allows you to know whether or not the Oracle is receiving regular updates.
Therefore, it's advised to add a check for sequencer operation in the current logic that verifies whether the Oracle data is stale.
Without this check, there's a risk that the system could operate on outdated or stale price data from the Oracle, which could lead to incorrect calculations and actions in the system.
VS 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.