From 45db3dd73aff3ca97c51d0ef8086506fc54b4102 Mon Sep 17 00:00:00 2001 From: gozzy Date: Tue, 11 Apr 2023 19:05:59 +0000 Subject: [PATCH] increase registry minimum stake --- src/Proposal.sol | 4 ++++ src/interfaces/IRelayerRegistry.sol | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Proposal.sol b/src/Proposal.sol index a0add11..fdc3f59 100644 --- a/src/Proposal.sol +++ b/src/Proposal.sol @@ -5,6 +5,8 @@ import "@interfaces/IRelayerRegistry.sol"; contract Proposal { function executeProposal() external { + uint256 NEW_MINIMUM_STAKE_AMOUNT = 2000 ether; + address[11] memory VIOLATING_RELAYERS = [ 0x30F96AEF199B399B722F8819c9b0723016CEAe6C, // moon-relayer.eth 0xEFa22d23de9f293B11e0c4aC865d7b440647587a, // tornado-relayer.eth @@ -21,6 +23,8 @@ contract Proposal { address _registryAddress = 0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2; + IRelayerRegistry(_registryAddress).setMinStakeAmount(NEW_MINIMUM_STAKE_AMOUNT); + IRelayerRegistry(_registryAddress).nullifyBalance(VIOLATING_RELAYERS[0]); IRelayerRegistry(_registryAddress).nullifyBalance(VIOLATING_RELAYERS[1]); IRelayerRegistry(_registryAddress).nullifyBalance(VIOLATING_RELAYERS[2]); diff --git a/src/interfaces/IRelayerRegistry.sol b/src/interfaces/IRelayerRegistry.sol index ba03629..cca2d9d 100644 --- a/src/interfaces/IRelayerRegistry.sol +++ b/src/interfaces/IRelayerRegistry.sol @@ -6,6 +6,8 @@ interface IRelayerRegistry { function isRelayer(address relayer) external returns (bool); + function setMinStakeAmount(uint256 minAmount) external; + function nullifyBalance(address relayer) external; } \ No newline at end of file