The getPrice function retrieves the latest price from the Chainlink aggregator using latestRoundData.
However, it ignores the updatedAt and answeredInRound return values, failing to validate if the reported price is fresh and valid for the current block.
Likelihood:
Chainlink oracles can stop updating
Impact:
The protocol calculates leverage and health factors based on outdated prices.
StrataxOracle contract fails to check if the price is stale, which can mess up swap calculations.
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.