diff --git a/src/usePriceOracle.ts b/src/usePriceOracle.ts index 0fc909a..f41a1be 100644 --- a/src/usePriceOracle.ts +++ b/src/usePriceOracle.ts @@ -8,7 +8,8 @@ export const useETHUSDOracle = ( provider: JsonRpcProvider | undefined, blockTag: BlockTag | undefined ) => { - const priceMap = useMultipleETHUSDOracle(provider, [blockTag]); + const blockTags = useMemo(() => [blockTag], [blockTag]); + const priceMap = useMultipleETHUSDOracle(provider, blockTags); if (blockTag === undefined) { return undefined;