This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
xiaoming90 - Oracle's validation checks can be further strengthened #96
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
xiaoming90
medium
Oracle's validation checks can be further strengthened
Summary
Validation checks of the oracle can be further strengthened.
Vulnerability Detail
Following is the existing validation check in place for the returned oracle price.
https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/utils/collectors/OptimismRewardCollector.sol#L78
It was observed that the validation checks can be further strengthened. Refer to the recommendation for more details.
Impact
Oracle price returned might be incorrect under certain conditions.
Code Snippet
https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/utils/collectors/OptimismRewardCollector.sol#L78
Tool used
Manual Review
Recommendation
Consider implementing the following check against the returned oracle price.
The L2 Sequencer Uptime Feeds were also not utilized to check the status of the L2 sequencer in the price oracle. Consider integrating it into the oracle if necessary.
Duplicate of #14
The text was updated successfully, but these errors were encountered: