Skip to content

Commit

Permalink
fix: Merkl apr
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Dec 29, 2024
1 parent ee0f2cb commit 46b7855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/src/hooks/useMerkl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 46b7855

Please sign in to comment.