The variable answeredInRound in Chainlink is used to indicate in which round the current price (answer) was recorded. According to Chainlink's documentation, this variable is marked "deprecated," which typically means that its use is no longer recommended and could be removed or its behavior changed in the future.
The fact that it is marked as "deprecated" implies that its value should not be trusted for critical DSCEngine logic. In general, it's a good practice to avoid using deprecated features in your code to ensure future compatibility and avoid potential bugs or issues.
High
Manual code review
To make sure, you can add a check between answeredInRound
and roundId
, since answeredInRound
cannot be fully trusted you can add updatedAt
in the logic to ensure that the Oracle data is recent.
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.