Protocol will always fail to fetch a asset price . Deployment of CamelotRelayer will fail .
Proof of Concept
CamelotRelayer contracts are supposed to consult a CamelotRelayer TWAP and transforms the result into a standard IBaseOracle feed .then the quote obtained from the pool query is transformed into an 18 decimals format
However the current address of Camelot V3 Factory being used is wrong . It's using Goerli's Camelot V3 Factory address instead of Arbitrum's address . This arises a huge issue of Protocol always failing to fetch a asset price .
Lines of code
https://github.com/open-dollar/od-contracts/blob/v1.5.5-audit/src/contracts/oracles/CamelotRelayer.sol#L20
Vulnerability details
Impact
Protocol will always fail to fetch a asset price . Deployment of CamelotRelayer will fail .
Proof of Concept
CamelotRelayer contracts are supposed to consult a CamelotRelayer TWAP and transforms the result into a standard IBaseOracle feed .then the quote obtained from the pool query is transformed into an 18 decimals format
However the current address of Camelot V3 Factory being used is wrong . It's using Goerli's Camelot V3 Factory address instead of Arbitrum's address . This arises a huge issue of Protocol always failing to fetch a asset price .
Tools Used
Etherscan
Recommended Mitigation Steps
Use Arbitrum's address of Camelot V3 Factory :
Assessed type
Oracle