In UpdateWeightRunner._getData()
, when oracleStalenessThreshold
is 0, the oracle freshness check becomes oracleResult.timestamp > block.timestamp
. Since oracles cannot provide future timestamps, this condition is impossible to satisfy, causing all oracle updates to fail and permanently DOS the pool.
Pools can become permanently non-functional if staleness threshold is set to 0, as no oracle update can pass the timestamp validation.
Add validation in pool initialization:
Or modify the check to allow current block timestamps:
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood 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.