getWstethEthPrice()
function of LibWstethEthOracle
uses invalid timeout for STETH/ETH
chainlink price feed.
getWstethEthPrice()
function uses LibChainlinkOracle.FOUR_DAY_TIMEOUT
as timeout for STETH/ETH
price feed which equals to 345600
seconds or 4 days. But the heartbeat of the STETH/ETH
price feed is 86400
seconds. Thus, it introduces a significant delay in recognizing stale or outdated price data.
Timeout
significantly longer than heartbeat can lead to scenarios where LibChainlinkOracle
accepts data that may no longer reflect current market conditions. Also, in volatile markets, a 4-day window leads to accepting outdated prices, increasing the risk of price slippage.
Manual Review
Consider using timeout
value as close to heartbeat
of the STETH/ETH
chainlink price feed as possible.
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.