Skip to content

Commit 00c6b1a

Browse files
committed
fix: better resolution when calculating stx vested
1 parent 6b12a8d commit 00c6b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackslib/src/chainstate/stacks/boot/sip-031.clar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
(diff (- burn-height DEPLOY_BLOCK_HEIGHT))
8686
;; Note: this rounds down
8787
(iterations (/ diff INITIAL_MINT_VESTING_ITERATION_BLOCKS))
88-
(vested-multiple (* STX_PER_ITERATION iterations))
88+
(vested-multiple (/ (* STX_PER_ITERATION diff) INITIAL_MINT_VESTING_ITERATION_BLOCKS))
8989

9090
;; If we have completed (or exceeded) the scheduled number of iterations,
9191
;; consider the *entire* vesting bucket unlocked. This avoids leaving a

0 commit comments

Comments
 (0)