From 184d3773407da3000b4cdacfa1e653c168aae161 Mon Sep 17 00:00:00 2001 From: Hayden Shively <17186559+haydenshively@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:41:30 -0500 Subject: [PATCH] Fix prime --- prime/src/components/borrow/MarginAccountHeader.tsx | 4 ++-- prime/src/components/borrow/modal/PendingTxnModal.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prime/src/components/borrow/MarginAccountHeader.tsx b/prime/src/components/borrow/MarginAccountHeader.tsx index 7262e8f6..54c5ff67 100644 --- a/prime/src/components/borrow/MarginAccountHeader.tsx +++ b/prime/src/components/borrow/MarginAccountHeader.tsx @@ -3,7 +3,7 @@ import RoundedBadge, { BADGE_TEXT_COLOR } from 'shared/lib/components/common/Rou import { Display } from 'shared/lib/components/common/Typography'; import { Token } from 'shared/lib/data/Token'; import useChain from 'shared/lib/hooks/UseChain'; -import { getEtherscanUrlForChain } from 'shared/lib/util/Chains'; +import { getBlockExplorerUrl } from 'shared/lib/util/Chains'; import styled from 'styled-components'; import tw from 'twin.macro'; @@ -84,7 +84,7 @@ export type MarginAccountHeaderProps = { export default function MarginAccountHeader(props: MarginAccountHeaderProps) { const activeChain = useChain(); - const baseEtherscanUrl = getEtherscanUrlForChain(activeChain); + const baseEtherscanUrl = getBlockExplorerUrl(activeChain); return ( diff --git a/prime/src/components/borrow/modal/PendingTxnModal.tsx b/prime/src/components/borrow/modal/PendingTxnModal.tsx index c3057496..80ada512 100644 --- a/prime/src/components/borrow/modal/PendingTxnModal.tsx +++ b/prime/src/components/borrow/modal/PendingTxnModal.tsx @@ -1,7 +1,7 @@ import { LoadingModal, MESSAGE_TEXT_COLOR } from 'shared/lib/components/common/Modal'; import { Text } from 'shared/lib/components/common/Typography'; import useChain from 'shared/lib/hooks/UseChain'; -import { getEtherscanUrlForChain } from 'shared/lib/util/Chains'; +import { getBlockExplorerUrl } from 'shared/lib/util/Chains'; export type PendingTxnModalProps = { open: boolean; @@ -19,7 +19,7 @@ export default function PendingTxnModal(props: PendingTxnModalProps) { {props.txnHash && (