From 6f2570a3c2f4241d3ad023a00c55991d3c9bb2b8 Mon Sep 17 00:00:00 2001 From: memoyil <2213635+memoyil@users.noreply.github.com> Date: Wed, 2 Oct 2024 10:49:51 +0200 Subject: [PATCH] perf: Use string key --- apps/web/src/state/farmsV4/state/poolApr/fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/state/farmsV4/state/poolApr/fetcher.ts b/apps/web/src/state/farmsV4/state/poolApr/fetcher.ts index c6902efe8665a..be9c452eeb591 100644 --- a/apps/web/src/state/farmsV4/state/poolApr/fetcher.ts +++ b/apps/web/src/state/farmsV4/state/poolApr/fetcher.ts @@ -302,7 +302,7 @@ const getV3PoolsCakeApr = async (pools: V3PoolInfo[]): Promise => { const poolsByChainId = groupBy(pools, 'chainId') const aprs = await Promise.all( Object.keys(poolsByChainId).map((chainId) => - getV3PoolsCakeAprByChainId(poolsByChainId[Number(chainId)], Number(chainId), cakePrice), + getV3PoolsCakeAprByChainId(poolsByChainId[chainId], Number(chainId), cakePrice), ), ) return aprs.reduce((acc, apr) => assign(acc, apr), {})