You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
github-actionsbot opened this issue
Mar 1, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
csanuragjain
medium
Improper Validation Of latestRoundData Function
Summary
Additional checks on latestRoundData is missing. This means even a stale price is accepted and returned to user
Vulnerability Detail
Necessary checks are missing while using latestRoundData function which means the returned price might be stale
Impact
Price returned could be stale
Code Snippet
https://github.com/sherlock-audit/2023-02-blueberry/blob/main/contracts/oracle/ChainlinkAdapterOracle.sol#L76-L83
Tool used
Manual Review
Recommendation
Change the implementation as below :
Duplicate of #94
The text was updated successfully, but these errors were encountered: