From 566347b37b1afac3040b08e432eb6d9462a39619 Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Thu, 3 Oct 2024 23:33:07 +1000 Subject: [PATCH] the stakingCapHeight is inclusive --- package-lock.json | 4 ++-- package.json | 2 +- src/app/components/Staking/Staking.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b92b1e8a..afb67f82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.3.3", + "version": "0.3.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.3.3", + "version": "0.3.4", "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 61111947..f744a64e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.3.3", + "version": "0.3.4", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 3a1d3de8..16629d66 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -158,7 +158,7 @@ export const Staking: React.FC = ({ if (stakingCapHeight) { setOverflow({ isHeightCap: true, - overTheCapRange: nextBlockHeight >= stakingCapHeight, + 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