Silence catch error on purpose
This commit is contained in:
parent
63b79c5c75
commit
53630f43a4
@ -50,7 +50,8 @@ export const useMultipleETHUSDOracle = (
|
||||
const priceData = await ethFeed.latestRoundData({ blockTag });
|
||||
return BigNumber.from(priceData.answer);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
// Silently ignore on purpose; it means the network or block number does
|
||||
// not contain the chainlink feed contract
|
||||
return undefined;
|
||||
}
|
||||
})()
|
||||
|
Loading…
Reference in New Issue
Block a user