diff --git a/package-lock.json b/package-lock.json index f33be58f..b92b1e8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.3.2", + "version": "0.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.3.2", + "version": "0.3.3", "dependencies": { "@babylonlabs-io/btc-staking-ts": "0.3.0", "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", diff --git a/package.json b/package.json index 2756104e..61111947 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.3.2", + "version": "0.3.3", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 4e8ac76c..3a1d3de8 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -153,14 +153,12 @@ export const Staking: React.FC = ({ return; } const nextBlockHeight = btcHeight + 1; - const { stakingCapHeight, stakingCapSat, confirmationDepth } = - paramWithCtx.currentVersion; + const { stakingCapHeight, stakingCapSat } = paramWithCtx.currentVersion; // Use height based cap than value based cap if it is set if (stakingCapHeight) { setOverflow({ isHeightCap: true, - overTheCapRange: - nextBlockHeight >= stakingCapHeight + confirmationDepth, + overTheCapRange: nextBlockHeight >= stakingCapHeight, /* When btc height is approching the staking cap height, there is higher chance of overflow due to tx not being included in the next few blocks on time