From 46b7855169e1f2647d78606d4342bba972823099 Mon Sep 17 00:00:00 2001 From: memoyil <2213635+memoyil@users.noreply.github.com> Date: Sun, 29 Dec 2024 11:59:55 +0300 Subject: [PATCH] fix: Merkl apr --- apps/web/src/hooks/useMerkl.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/hooks/useMerkl.tsx b/apps/web/src/hooks/useMerkl.tsx index 8f570d1a64af0..9347ca2f44c7a 100644 --- a/apps/web/src/hooks/useMerkl.tsx +++ b/apps/web/src/hooks/useMerkl.tsx @@ -189,7 +189,9 @@ export function useMerklInfo(poolAddress?: string): { return CurrencyAmount.fromRawAmount(t, '0') }) - const merklApr = data?.pools?.[poolAddress ?? '']?.apr as number | undefined + const merklApr = data?.pools?.find((pool) => isAddressEqual(pool.identifier, poolAddress))?.apr as + | number + | undefined return { ...rest,