The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Not Checking For Stale Prices

Summary

Many smart contracts use Chainlink to request off-chain pricing data, but a common error occurs when the smart contract doesn’t check whether that data is stale.

Vulnerability Details

In function distributeAssets() missing updateAt check. This code will execute with prices that don’t reflect the current pricing resulting in a potential loss of funds

Impact

Smart contracts should always check the updatedAt parameter returned from latestRoundData()and compare it to a staleness threshold

Tools Used

Manual

Recommendations

add a check if price data is outdated

Updates

Lead Judging Commences

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

Chainlink-price

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

Chainlink-price

Support

FAQs

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

Give us feedback!