QuantAMM

QuantAMM
49,600 OP
View results
Submission Details
Severity: low
Invalid

Unchecked External Calls

Summary

Location: ChainlinkOracle.sol (lines 37-38)

The contract only checks if the returned price is greater than zero, but
doesn't validate other important aspects of the Chainlink response such as roundID
and answeredInRound.

Vulnerability Details

Location: ChainlinkOracle.sol (lines 37-38)

The contract only checks if the returned price is greater than zero, but
doesn't validate other important aspects of the Chainlink response such as roundID
and answeredInRound.

Code Snippet:

priceFeed.latestRoundData();
require(data > 0, "INVLDDATA");

Impact

Silent failures leading to broken contract state or lost funds.

Tools Used

Recommendations

Add comprehensive validation:

  1. Check if roundID is greater than 0

  2. Verify answeredInRound >= roundID

  3. Implement timestamp freshness check

  4. Add maximum staleness threshold

Updates

Lead Judging Commences

n0kto Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

invalid_chainlink_staled_data_updateAt_roundId_known_issue

LightChaser: ## [Medium-4] Insufficient oracle validation

Support

FAQs

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

Give us feedback!