15,000 USDC
View results
Submission Details
Severity: medium
Valid

Chainlink allowed `TIMEOUT` is too long

Description

OracleLib::staleCheckLatestRoundData checks that the elapsed time since the last price feed update and now does not surpasses a set timeout constant TIMEOUT. However this timeout is set to 3 times how much a normal response takes, it can be set to a lower value.

Usual updates are at most an hour (example https://data.chain.link/ethereum/mainnet/crypto-usd/btc-usd).

Recommend Mitigation

Lower the TIMEOUT variable to 2 hours.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.