Using an rETH/USDC oracle in Flat-Money is crucial because all the logic relies heavily on this type of oracle, including:
share price calculation
trading position evaluation
liquidations
Vulnerability Detail
The problem is that there is no rETH/USDC oracle deployed by Chainlink on the Base chain. One alternative is to use the rETH/ETH oracle, but it will require additional development and will impact the entire codebase due to the distinctions with the intended rETH/USDC oracle:
deviation
decimals
heartbeat
price
Also, all the formulas used through the codebase will have to be changed.
Impact
The project will not function properly because of the missing oracle, additional development will be needed and most of the logic will have to be redefined.
SBSecurity
medium
No rETH/USD oracle in Base chain
Summary
Using an rETH/USDC oracle in Flat-Money is crucial because all the logic relies heavily on this type of oracle, including:
Vulnerability Detail
The problem is that there is no rETH/USDC oracle deployed by Chainlink on the Base chain. One alternative is to use the rETH/ETH oracle, but it will require additional development and will impact the entire codebase due to the distinctions with the intended rETH/USDC oracle:
Also, all the formulas used through the codebase will have to be changed.
Impact
The project will not function properly because of the missing oracle, additional development will be needed and most of the logic will have to be redefined.
Code Snippet
OracleModule.sol
If rETH/ETH oracle is used the least thing that will be wrong is the decimals, instead of the intended 18, it will be scaled to 36 decimals.
Tool used
Manual Review
Recommendation
Alternative is to use the rETH/ETH oracle.
Duplicate of #90