Skip to content

Commit

Permalink
the stakingCapHeight is inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Oct 3, 2024
1 parent 41711b1 commit 566347b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.3.3",
"version": "0.3.4",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Staking/Staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const Staking: React.FC<StakingProps> = ({
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
Expand Down

0 comments on commit 566347b

Please sign in to comment.