The require(updatedAt > block.timestamp - maxTimeWindow[token], "stale price feed"); condition incorrectly reverts for valid price updates when updatedAt is exactly at the edge of the maxTimeWindow.
The _check function unnecessarily rejects valid price updates that fall within the acceptable time window.
Potential disruptions in contract operations due to unnecessary reverts.
Reduced efficiency in executing trades or other dependent actions.
Change the strict > comparison to >= to correctly allow updates within the maxTimeWindow.
This ensures that prices updated exactly at the limit of maxTimeWindow are still considered valid, preventing unnecessary reverts while maintaining data integrity.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.