diff --git a/app/(main)/markets/Info.tsx b/app/(main)/markets/Info.tsx index f1ad7f5..af402f3 100644 --- a/app/(main)/markets/Info.tsx +++ b/app/(main)/markets/Info.tsx @@ -4,25 +4,25 @@ import { Icon, IconButton } from '@swapr/ui'; import { trackEvent } from 'fathom-client'; import { FA_EVENTS } from '@/analytics'; -import { GNOSIS_SCAN_URL, KLEROS_URL, REALITY_QUESTION_URL } from '@/constants'; +import { KLEROS_URL, REALITY_QUESTION_URL } from '@/constants'; import { FixedProductMarketMaker } from '@/queries/omen'; -import { shortenAddress } from '@/utils'; +import { getExplorerAddressUrl, shortenAddress } from '@/utils'; interface InfoProps { fixedProductMarketMaker: FixedProductMarketMaker; } export const Info = ({ fixedProductMarketMaker }: InfoProps) => { const [clipboardIcon, setClipboardIcon] = useState<'copy' | 'tick'>('copy'); - const id = fixedProductMarketMaker.id; + const address = fixedProductMarketMaker.id; const questionId = fixedProductMarketMaker.question?.id; return ( <>
- {shortenAddress(id)} + {shortenAddress(address)} { - navigator.clipboard.writeText(id); + navigator.clipboard.writeText(address); setClipboardIcon('tick'); setTimeout(() => { @@ -35,7 +35,7 @@ export const Info = ({ fixedProductMarketMaker }: InfoProps) => { />
trackEvent(FA_EVENTS.MARKETS.DETAILS.INFO.CONTRACT)} diff --git a/app/(main)/profile/page.tsx b/app/(main)/profile/page.tsx index dfcfdb8..d491b9a 100644 --- a/app/(main)/profile/page.tsx +++ b/app/(main)/profile/page.tsx @@ -6,7 +6,7 @@ import { Address, formatEther, isAddress } from 'viem'; import { calcSellAmountInCollateral, formatValueWithFixedDecimals, - getGnosisAddressExplorerLink, + getExplorerAddressUrl, shortenAddress, } from '@/utils'; import { TabBody, TabGroup, TabHeader, Tag } from '@swapr/ui'; @@ -265,7 +265,7 @@ export default function ProfilePage() {
{txHash && ( - +