When the LibWellMintingfails to fetch the price from the reserves, the usdTokenPriceis 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 0for the case above. When in fact, it should get the current price from Chainlink.
getEthUsdPriceFromStorageIfSaved will return the 0when 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.