The _getData function in the MultiHopOracle contract aggregates data from multiple oracle sources and returns the minimum timestamp among them. This approach, while ensuring data consistency, may not align with user expectations for obtaining the most recent data.
The _getData function currently selects the minimum timestamp from all oracle data points
This means the returned data reflects the oldest data point, not necessarily the most recent or relevant one.
The use of the oldest timestamp can lead to stale data being perceived as current, affecting financial decisions and Inaccurate data timestamps can lead to incorrect market reactions or decisions based on perceived outdated information.
Manual Review
Modify the function to return the maximum timestamp, ensuring the data reflects the most recent update across all oracles.
Here we’re searching for the weakest element in the chain to know if we can trust the entire chain. That’s why we need the oldest timestamp to check if the all chain returns at least one staled data.
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.