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 the PendlePTOracle.sol contract,it can lead to fetching of unordered and outdated data feeds, use the _checkSequencer function like its used in other functions of oracle
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: https://github.com/sherlock-audit/2022-11-sentiment-judging/issues/3Impact
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