-
- Total
-
-
-
- 0.004
-
-
- $370.03
-
-
+
+
+ {mempoolFeeRates ? (
+
+
+ Recommended fee rate: {defaultFeeRate} sats/vB
+
+
+ Transaction fee amount:{" "}
+
+ {satoshiToBtc(stakingFeeSat)} {coinName}
+
+
- >
- ) : (
-
- )}
+ ) : (
+
+ )}
+
+
);
};
diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx
index a3b9ecfb..834cdc24 100644
--- a/src/app/components/Staking/Staking.tsx
+++ b/src/app/components/Staking/Staking.tsx
@@ -1,7 +1,5 @@
-import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useEffect, useMemo, useState } from "react";
-import { MdErrorOutline } from "react-icons/md";
import { Tooltip } from "react-tooltip";
import { useLocalStorage } from "usehooks-ts";
@@ -31,6 +29,7 @@ import { PreviewModal } from "../Modals/PreviewModal";
import { FinalityProviders } from "./FinalityProviders/FinalityProviders";
import { StakingAmount } from "./Form/StakingAmount";
import { StakingFee } from "./Form/StakingFee";
+import { StakingTime } from "./Form/StakingTime";
import { Message } from "./Form/States/Message";
import { WalletNotConnected } from "./Form/States/WalletNotConnected";
import apiNotAvailable from "./Form/States/api-not-available.svg";
@@ -453,115 +452,85 @@ export const Staking = () => {
signReady && feeRate && availableUTXOs && stakingAmountSat;
return (
-
-
-
- Step 2
-
-
- Set Staking Amount
-
-
-
-
-
-
-
- Info
-
-
- You can unbond and withdraw your stake anytime with an
- unbonding time of 7 days.
-
-
- Learn More
-
-
-
+ <>
+
+ Step-2: Set up staking terms
+
+
-
-
- {signReady && (
-
- )}
-
-
-
-
-
- {previewReady && (
-
+
+ {signReady && (
+
)}
+
+
+
+
+ {previewReady && (
+
+ )}
-
+ >
);
}
};
return (
-
-
- Bitcoin Staking
-
+
+
Staking
-
+
-
+
+
{renderStakingForm()}
diff --git a/src/app/components/Stats/Stats.tsx b/src/app/components/Stats/Stats.tsx
index 7ee763d4..fa77d464 100644
--- a/src/app/components/Stats/Stats.tsx
+++ b/src/app/components/Stats/Stats.tsx
@@ -26,7 +26,7 @@ export const Stats = memo(() => {
return (