diff --git a/src/app/components/Summary/Summary.tsx b/src/app/components/Summary/Summary.tsx index eef644b1..d8f2ed06 100644 --- a/src/app/components/Summary/Summary.tsx +++ b/src/app/components/Summary/Summary.tsx @@ -1,16 +1,7 @@ -import { useMemo, useState } from "react"; -import { AiOutlineInfoCircle } from "react-icons/ai"; import { FaBitcoin } from "react-icons/fa"; -import { Tooltip } from "react-tooltip"; -import { useGlobalParams } from "@/app/context/api/GlobalParamsProvider"; -import { useBtcHeight } from "@/app/context/mempool/BtcHeightProvider"; import { getNetworkConfig } from "@/config/network.config"; import { satoshiToBtc } from "@/utils/btcConversions"; -import { - getCurrentGlobalParamsVersion, - ParamsWithContext, -} from "@/utils/globalParams"; import { maxDecimals } from "@/utils/maxDecimals"; import { Network } from "@/utils/wallet/wallet_provider"; @@ -27,41 +18,13 @@ export const Summary: React.FC = ({ }) => { const { coinName } = getNetworkConfig(); const onMainnet = getNetworkConfig().network === Network.MAINNET; - const [paramWithCtx, setParamWithCtx] = useState< - ParamsWithContext | undefined - >(); - - const btcHeight = useBtcHeight(); - const globalParams = useGlobalParams(); - - useMemo(() => { - if (!btcHeight || !globalParams.data) { - return; - } - const paramCtx = getCurrentGlobalParamsVersion( - btcHeight + 1, - globalParams.data, - ); - setParamWithCtx(paramCtx); - }, [btcHeight, globalParams]); return (

Your staking summary

-
-

Total staked

- - - - -
+

Total staked