diff --git a/package-lock.json b/package-lock.json index 9d5c9c85..aaaa807a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.2.35", + "version": "0.2.36", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.2.35", + "version": "0.2.36", "dependencies": { "@bitcoinerlab/secp256k1": "^1.1.1", "@keystonehq/animated-qr": "^0.8.6", diff --git a/package.json b/package.json index d849223f..3c57a014 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.2.35", + "version": "0.2.36", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/Modals/PreviewModal.tsx b/src/app/components/Modals/PreviewModal.tsx index b6a78118..33a653f8 100644 --- a/src/app/components/Modals/PreviewModal.tsx +++ b/src/app/components/Modals/PreviewModal.tsx @@ -18,6 +18,7 @@ interface PreviewModalProps { feeRate: number; unbondingTimeBlocks: number; confirmationDepth: number; + unbondingFeeSat: number; } export const PreviewModal: React.FC = ({ @@ -31,6 +32,7 @@ export const PreviewModal: React.FC = ({ stakingFeeSat, feeRate, confirmationDepth, + unbondingFeeSat, }) => { const cardStyles = "card border bg-base-300 p-4 text-sm dark:border-0 dark:bg-base-200"; @@ -76,7 +78,7 @@ export const PreviewModal: React.FC = ({

Term

{blocksToDisplayTime(stakingTimeBlocks)}

-
+

On-demand unbonding

@@ -85,12 +87,20 @@ export const PreviewModal: React.FC = ({ time)

+
+

Unbonding fee

+

{`${maxDecimals(satoshiToBtc(unbondingFeeSat), 8)} ${coinName}`}

+

Attention!

1. Your stake may "overflow" the staking TVL cap and need to - be unbonded and withdrawn, which will cost you extra transaction fees. - So please stake wisely. + be unbonded and withdrawn, which will cost you {coinName} transaction + fees. So please stake wisely. Unbonding will cost you a static + transaction fee of{" "} + {`${maxDecimals(satoshiToBtc(unbondingFeeSat), 8)} ${coinName}`} + , while the withdrawal fee depends on network conditions. All fees go + to the {coinName} miners.

2. No third party possesses your staked {coinName}. You are the only diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index ac866c67..fb33013c 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -579,6 +579,7 @@ export const Staking: React.FC = ({ maxStakingTimeBlocks, unbondingTime, confirmationDepth, + unbondingFeeSat, } = stakingParams; // Staking time is fixed @@ -664,6 +665,7 @@ export const Staking: React.FC = ({ confirmationDepth={confirmationDepth} feeRate={feeRate} unbondingTimeBlocks={unbondingTime} + unbondingFeeSat={unbondingFeeSat} /> )}