diff --git a/src/app/components/Delegations/Delegation.tsx b/src/app/components/Delegations/Delegation.tsx index de3e4958..ad7fec8c 100644 --- a/src/app/components/Delegations/Delegation.tsx +++ b/src/app/components/Delegations/Delegation.tsx @@ -6,12 +6,17 @@ import { Tooltip } from "react-tooltip"; import { DelegationState, StakingTx } from "@/app/types/delegations"; import { GlobalParamsVersion } from "@/app/types/globalParams"; +import { + PUBLIC_MEMPOOL_URL, + PUBLIC_MEMPOOL_URL_SIGNET, +} from "@/config/mempool"; import { getNetworkConfig } from "@/config/network.config"; import { satoshiToBtc } from "@/utils/btcConversions"; import { durationTillNow } from "@/utils/formatTime"; import { getState, getStateTooltip } from "@/utils/getState"; import { maxDecimals } from "@/utils/maxDecimals"; import { trim } from "@/utils/trim"; +import { Network } from "@/utils/wallet/wallet_provider"; interface DelegationProps { finalityProviderMoniker: string; @@ -111,7 +116,12 @@ export const Delegation: React.FC = ({ } }; - const { coinName, mempoolApiUrl } = getNetworkConfig(); + const { coinName, network } = getNetworkConfig(); + + const mempoolUIUrl = + network === Network.MAINNET + ? PUBLIC_MEMPOOL_URL + : PUBLIC_MEMPOOL_URL_SIGNET; return (
= ({