unRekt - Not checking if a sequencer is down or not in a function to fetch rate from oracle can lead to outdated and unordered data feed #132
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
unRekt
Medium
Not checking if a sequencer is down or not in a function to fetch rate from oracle can lead to outdated and unordered data feed
Summary
Not checking the sequencer can lead to stale data feed
Vulnerability Detail
By not checking the sequencer in
_getPTRate
function of thePendlePTOracle.sol
contract,it can lead to fetching of unordered and outdated data feeds, use the_checkSequencer
function like its used in other functions of oracleSimilar issue in related to
Chainlink
sequencer:sherlock-audit/2022-11-sentiment-judging#3
Impact
Not checking the sequencer can lead to stale data feed
Code Snippet
https://github.com/sherlock-audit/2024-06-leveraged-vaults/blob/main/leveraged-vaults-private/contracts/oracles/PendlePTOracle.sol#L85-L90
Tool used
Manual Review
Recommendation
Use
_checkSequencer
in_getPTRate
The text was updated successfully, but these errors were encountered: