You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
sherlock-admin opened this issue
May 23, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
Wrong address for DAIEthOracle in StableOracleDAI.sol:DAIEthOracle and StableOracleWBGL.sol:staticOracleUniV3
Summary
Wrong address for DAIEthOracle in StableOracleDAI.sol:DAIEthOracle and StableOracleWBGL.sol:staticOracleUniV3.
Vulnerability Detail
In the constructor of StableOracleDAI.sol and StableOracleWBGL.sol the value of the static oracles (DAIEthOracle and staticOracleUniV3) is initialized with the address 0x982152A6C7f732Ec7C9EA998dDD9Ebde00Dfa16e. This is the address of Uniswap WBGL/WETH pool, which does not implement the quoteSpecificPoolsWithTimePeriod function.
Impact
Calls to getPriceUSD() in StableOracleDAI and StableOracleWBGL will fail. This will make not possible minting or rebalancing USSD.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
shaka
high
Wrong address for
DAIEthOracle
inStableOracleDAI.sol:DAIEthOracle
andStableOracleWBGL.sol:staticOracleUniV3
Summary
Wrong address for
DAIEthOracle
inStableOracleDAI.sol:DAIEthOracle
andStableOracleWBGL.sol:staticOracleUniV3
.Vulnerability Detail
In the constructor of
StableOracleDAI.sol
andStableOracleWBGL.sol
the value of the static oracles (DAIEthOracle
andstaticOracleUniV3
) is initialized with the address0x982152A6C7f732Ec7C9EA998dDD9Ebde00Dfa16e
. This is the address of Uniswap WBGL/WETH pool, which does not implement thequoteSpecificPoolsWithTimePeriod
function.Impact
Calls to
getPriceUSD()
inStableOracleDAI
andStableOracleWBGL
will fail. This will make not possible minting or rebalancing USSD.Code Snippet
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/oracles/StableOracleDAI.sol#L27-L29
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/oracles/StableOracleWBGL.sol#L18-L20
Tool used
Manual Review
Recommendation
Use the correct address for static oracle contracts.
Duplicate of #817
The text was updated successfully, but these errors were encountered: