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

Improper staleness validation

Summary

There is an improper staleness validation.

Vulnerability Details

There is a staleness check into the OracleLib library. However, it is improper, because different Chainlink price feeds have different update frequency. Therefore, it will be improperly validated for different feeds.

Impact

It will cause revert when it is not needed and no revert when it is needed.

Tools Used

Manually

Recommendations

Use a mapping with different timeouts for different feeds.

Support

FAQs

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