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
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
juancito
medium
ethOracle
is not defined inStableOracleDAI
makinggetPriceUSD
always revertSummary
ethOracle
is not defined inStableOracleDAI
makinggetPriceUSD
always revert, preventing minting tokens with DAI as collateral.Vulnerability Detail
The
ethOracle
is not defined:Link to code
It tries to use it when calculating the usd price, so it will always revert:
Link to code
The price is used when trying to mint USSD tokens on the USSD contract. So, it is impossible to use this oracle for that purpose.
Impact
StableOracleDAI::getPriceUSD()
will always revert.It will not be possible to mint USSD tokens with DAI as collateral, due to the
getPriceUSD
function reverting when trying to do it.Code Snippet
Tool used
Manual Review
Recommendation
Allow the constructor to receive the address of the expected oracle, like it is implemented in
StableOracleWBGL.sol
:Duplicate of #817
The text was updated successfully, but these errors were encountered: