Skip to content

Commit

Permalink
feat: block funds by mev committee
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Oct 31, 2023
1 parent 126c5cc commit 4cf442e
Show file tree
Hide file tree
Showing 7 changed files with 266 additions and 93 deletions.
14 changes: 11 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ contract Deploy is Script {

uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
address deployerAddress = vm.addr(deployerPrivateKey);
address[] memory penalizers = new address[](1);
penalizers[0] = deployerAddress; // TODO: temporary

vm.startBroadcast(deployerPrivateKey);
locator = ILidoLocator(LIDO_LOCATOR_ADDRESS);
Expand All @@ -45,7 +43,7 @@ contract Deploy is Script {
lidoLocator: address(locator),
communityStakingModule: address(csm),
wstETH: address(wstETH),
penalizeRoleMembers: penalizers
blockedBondRetentionPeriod: 8 weeks
});
CSFeeOracle feeOracle = new CSFeeOracle({
secondsPerBlock: 12,
Expand All @@ -65,6 +63,16 @@ contract Deploy is Script {
admin: deployerAddress
});
accounting.setFeeDistributor(address(feeDistributor));
// TODO: temporary
accounting.grantRole(accounting.PENALIZE_BOND_ROLE(), deployerAddress);
accounting.grantRole(
accounting.EL_REWARDS_STEALING_PENALTY_ROLE(),
deployerAddress
);
accounting.grantRole(
accounting.EASY_TRACK_MOTION_AGENT_ROLE(),
deployerAddress
);
// TODO: csm.setBondManager(address(accounting));

vm.stopBroadcast();
Expand Down
Loading

0 comments on commit 4cf442e

Please sign in to comment.