Skip to content

Commit

Permalink
fix: wrong jail time in _checkValidatorSelfDelegation
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jan 17, 2024
1 parent 0c7a24f commit 4b53ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/BC_fusion/StakeHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ contract StakeHub is System, Initializable {
return;
}
if (IStakeCredit(valInfo.creditContract).getPooledBNB(operatorAddress) < minSelfDelegationBNB) {
_jailValidator(valInfo, downtimeJailTime);
_jailValidator(valInfo, block.timestamp + downtimeJailTime);
IBSCValidatorSet(VALIDATOR_CONTRACT_ADDR).removeTmpMigratedValidator(valInfo.consensusAddress);
IBSCValidatorSet(VALIDATOR_CONTRACT_ADDR).felony(valInfo.consensusAddress);
}
Expand Down

0 comments on commit 4b53ec9

Please sign in to comment.