From 662c62d72a0b14824f38851208a23f0229bc85e3 Mon Sep 17 00:00:00 2001 From: groninge Date: Tue, 27 Aug 2024 16:21:19 +0200 Subject: [PATCH] fetch correct block explorer url (#1017) --- .../PoolActivityTable/PoolActivityTableRow.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/modules/pool/PoolDetail/PoolActivityTable/PoolActivityTableRow.tsx b/lib/modules/pool/PoolDetail/PoolActivityTable/PoolActivityTableRow.tsx index c4bb2c9fa..e6723deee 100644 --- a/lib/modules/pool/PoolDetail/PoolActivityTable/PoolActivityTableRow.tsx +++ b/lib/modules/pool/PoolDetail/PoolActivityTable/PoolActivityTableRow.tsx @@ -29,13 +29,14 @@ import { TokenIcon } from '@/lib/modules/tokens/TokenIcon' import { fNum } from '@/lib/shared/utils/numbers' import React from 'react' import { GqlChain } from '@/lib/shared/services/api/generated/graphql' +import { usePool } from '../../PoolProvider' interface Props extends GridProps { event: PoolActivityEl keyValue: number } -function EnsOrAddress({ userAddress }: { userAddress: `0x${string}` }) { +function EnsOrAddress({ userAddress, chain }: { userAddress: `0x${string}`; chain: GqlChain }) { const chainId = getChainId(GqlChain.Mainnet) // perform ENS lookup through mainnet const { data: name } = useEnsName({ address: userAddress, chainId }) @@ -49,7 +50,7 @@ function EnsOrAddress({ userAddress }: { userAddress: `0x${string}` }) { }) return ( - + - + @@ -161,7 +163,7 @@ export function PoolActivityTableRow({ event, keyValue, ...rest }: Props) { {toCurrency(poolEvent.usdValue)} - + {formatDistanceToNow(new Date(secondsToMilliseconds(event[0])), {