File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
contrib/core-contract-tests/tests/pox-4 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class StackExtendAuthCommand implements PoxCommand {
50
50
// - The new lock period must be less than or equal to 12.
51
51
const stacker = model . stackers . get ( this . wallet . stxAddress ) ! ;
52
52
53
- const firstRewardCycle = stacker . firstLockedRewardCycle
53
+ const firstRewardCycle = stacker . firstLockedRewardCycle < this . currentCycle
54
54
? this . currentCycle
55
55
: stacker . firstLockedRewardCycle ;
56
56
const firstExtendCycle = Math . floor (
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class StackExtendSigCommand implements PoxCommand {
50
50
// - The new lock period must be less than or equal to 12.
51
51
const stacker = model . stackers . get ( this . wallet . stxAddress ) ! ;
52
52
53
- const firstRewardCycle = stacker . firstLockedRewardCycle
53
+ const firstRewardCycle = stacker . firstLockedRewardCycle < this . currentCycle
54
54
? this . currentCycle
55
55
: stacker . firstLockedRewardCycle ;
56
56
const firstExtendCycle = Math . floor (
You can’t perform that action at this time.
0 commit comments