Skip to content

Commit

Permalink
increase slash periods to 1 week considering manual slashing
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Nov 10, 2024
1 parent e8f9c15 commit eb052ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract DeployMainnet is BaseDeploy {
uint256 constant public MIN_STAKE = 1 ether;
address constant public SLASH_ORACLE = MainnetConstants.PRIMEV_TEAM_MULTISIG;
address constant public SLASH_RECEIVER = MainnetConstants.PRIMEV_TEAM_MULTISIG;
uint256 constant public UNSTAKE_PERIOD_BLOCKS = 12000; // ~ 1 day
uint256 constant public UNSTAKE_PERIOD_BLOCKS = 50000; // 50k * 12s ~= 1 week, which suffices for short-term manual slashing.
uint256 constant public PAYOUT_PERIOD_BLOCKS = 12000; // ~ 1 day

function run() external {
Expand Down
6 changes: 3 additions & 3 deletions contracts/scripts/validator-registry/avs/DeployAVS.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ contract DeployMainnet is BaseDeploy {
uint256 constant public UNFREEZE_FEE = 1 ether;
address constant public UNFREEZE_RECEIVER = MainnetConstants.PRIMEV_TEAM_MULTISIG;
uint256 constant public UNFREEZE_PERIOD_BLOCKS = 12000; // ~ 1 day
uint256 constant public OPERATOR_DEREG_PERIOD_BLOCKS = 12000; // ~ 1 day
uint256 constant public VALIDATOR_DEREG_PERIOD_BLOCKS = 12000; // ~ 1 day
uint256 constant public LST_RESTARKER_DEREG_PERIOD_BLOCKS = 12000; // ~ 1 day
uint256 constant public OPERATOR_DEREG_PERIOD_BLOCKS = 50000; // 50k * 12s ~= 1 week, which suffices for short-term manual slashing.
uint256 constant public VALIDATOR_DEREG_PERIOD_BLOCKS = 50000; // 50k * 12s ~= 1 week, which suffices for short-term manual slashing.
uint256 constant public LST_RESTARKER_DEREG_PERIOD_BLOCKS = 50000; // 50k * 12s ~= 1 week, which suffices for short-term manual slashing.

function run() external {
require(block.chainid == 1, "must deploy on mainnet");
Expand Down

0 comments on commit eb052ee

Please sign in to comment.