Skip to content

Commit

Permalink
perf: Use string key
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Oct 2, 2024
1 parent 33631bf commit 6f2570a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/state/farmsV4/state/poolApr/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const getV3PoolsCakeApr = async (pools: V3PoolInfo[]): Promise<CakeApr> => {
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), {})
Expand Down

0 comments on commit 6f2570a

Please sign in to comment.