When the LibWellMinting
fails to fetch the price from the reserves, the usdTokenPrice
is set to 0
. Let's consider for this case that the BEAN_ETH_WELL has been set to 0.
LibEthUsdOracle
has a function getEthUsdPriceFromStorageIfSaved
. This function will return 0
for the case above. When in fact, it should get the current price from Chainlink.
getEthUsdPriceFromStorageIfSaved
will return the 0
when it should return the price from Chainlink.
Manual Review
Consider the case of when Oracle fails to get the price from Chainlink.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.