This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
J4de - JOJOOracleAdaptor.sol#getAssetPrice
does not check sequencerUptimeFeed
#211
Labels
Non-Reward
This issue will not receive a payout
J4de
medium
JOJOOracleAdaptor.sol#getAssetPrice
does not checksequencerUptimeFeed
Summary
JOJOOracleAdaptor.sol#getAssetPrice
does not checksequencerUptimeFeed
Vulnerability Detail
Using the chainlink's
latestRoundData
function on L2 needs to checksequencerUptimeFeed
first.Refer to the chainlink example: https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
Same problem in
chainlinkAdaptor.sol
contract.Impact
May result in inaccurate prices
Code Snippet
https://github.com/JOJOexchange/JUSDV1/blob/011e10d36257a404c8c1d7d2b8c9f01a2b7a1969/src/oracle/JOJOOracleAdaptor.sol#L26-L35
Tool used
Manual Review
Recommendation
It is recommended to check
sequencerUptimeFeed
Duplicate of #101
The text was updated successfully, but these errors were encountered: