DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Incorrect value of `REPORT_PRICE_DECIMALS` in BaseKeeper.sol

Summary

There is variable which indicates decimals of returned price from Data Streams:
https://github.com/Cyfrin/2024-07-zaros/blob/d687fe96bb7ace8652778797052a38763fbcbb1b/src/external/chainlink/keepers/BaseKeeper.sol#L18

/// @notice Chainlink Data Streams Reports default decimals (both Basic and Premium).
uint8 internal constant REPORT_PRICE_DECIMALS = 8;

Problem is that real precision is 18 instead of 8. Here on Chainlink docs you can check it

Impact

Currently this variable is not used, so only in future it'll have any impact.

Tools Used

Manual Review

Recommendations

Either remove it or set 18 instead of 8.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 1 year ago
inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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