PriceCalculator.sol using Chainlink's latestRoundData API, but there is no check if the return value indicates stale data. This could lead to stale prices
In the PriceCalculator.sol contract, the eurToToken function obtains tokenUsdPrice and eurUsdPrice without checking whether the return value of Chainlink is outdated.
The same vulnerability exists in other functions as well.
This will result in an incorrect price being returned.
Manual review
Add storage variable hearbeat which checks that last answer is not too old. And perform following checks:
Get different token prices and rewrite the priceFeed
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.