This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
GimelSec - Doesn't check If Arbitrum sequencer is down in chainlinkAdaptor
#412
Labels
Non-Reward
This issue will not receive a payout
GimelSec
medium
Doesn't check If Arbitrum sequencer is down in
chainlinkAdaptor
Summary
When using Chainlink in Arbitrum, it's important to ensure that Arbitrum Sequencer is active.
Vulnerability Detail
Chainlink is used in
chainlinkAdaptor.getMarkPrice()
https://github.com/sherlock-audit/2023-04-jojo/blob/main/smart-contract-EVM/contracts/adaptor/chainlinkAdaptor.sol#L43
And it is said that the protocol is going to deploy on Arbitrum
https://github.com/sherlock-audit/2023-04-jojo-rayn731/tree/main#q-on-what-chains-are-the-smart-contracts-going-to-be-deployed
Q: On what chains are the smart contracts going to be deployed? Arbitrum
Impact
A stale price could be used when checking the safety of accounts.
Code Snippet
https://github.com/sherlock-audit/2023-04-jojo/blob/main/smart-contract-EVM/contracts/adaptor/chainlinkAdaptor.sol#L43
Tool used
Manual Review
Recommendation
Follow the code example from Chainlink:
https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
Duplicate of #101
The text was updated successfully, but these errors were encountered: