Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit ad041a9

Browse files
author
Denis Ermolin
committed
chg: allow to migrate to any non-foundation node
1 parent a22b380 commit ad041a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/staking/stakeManager/StakeManager.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ contract StakeManager is
523523
uint256 toValidatorId,
524524
uint256 amount
525525
) public {
526-
require(fromValidatorId < 8 && toValidatorId > 7, "Invalid migration");
526+
// allow to move to any non-foundation node
527+
require(toValidatorId > 7, "Invalid migration");
527528
IValidatorShare(validators[fromValidatorId].contractAddress).migrateOut(msg.sender, amount);
528529
IValidatorShare(validators[toValidatorId].contractAddress).migrateIn(msg.sender, amount);
529530
}
@@ -1118,7 +1119,6 @@ contract StakeManager is
11181119
}
11191120

11201121
_removeSigner(validators[validatorId].signer);
1121-
11221122
_liquidateRewards(validatorId, validator);
11231123

11241124
uint256 targetEpoch = exitEpoch <= currentEpoch ? 0 : exitEpoch;

0 commit comments

Comments
 (0)