There is a call to the Chainlink price feed latestRoundData
in the line https://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-quantamm/contracts/ChainlinkOracle.sol#L29v.It can return a stale price due to Chainlink lagging in delivering actual data.
Stale prices can result in transactions being excuted at incorrect rates
We recommend adding a call to the price feed function updatedAt
to check if the returned data is not stale.
LightChaser: ## [Medium-4] Insufficient oracle validation
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.