diff --git a/src/pages/stacks-blockchain/integrate-stacking.md b/src/pages/stacks-blockchain/integrate-stacking.md index 8a412505..5d17b7c1 100644 --- a/src/pages/stacks-blockchain/integrate-stacking.md +++ b/src/pages/stacks-blockchain/integrate-stacking.md @@ -168,7 +168,7 @@ const cycleDuration = poxInfo.reward_cycle_length * blocktimeInfo.testnet.target // how much time is left (in seconds) until the next cycle begins? const secondsToNextCycle = (poxInfo.reward_cycle_length - - ((coreInfo.burn_block_height - poxInfo.first_burnchain_block_height) % + ((coreInfo.burn_block_height - poxInfo.first_burnchain_block_height - 1) % poxInfo.reward_cycle_length)) * blocktimeInfo.testnet.target_block_time;