From bc2433be08fabf89a4e9029b9f18b05a14264433 Mon Sep 17 00:00:00 2001 From: Drygin Date: Mon, 24 Jan 2022 17:56:28 +0300 Subject: [PATCH] change configureLimits() access to multisig --- contracts/TornadoPool.sol | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/contracts/TornadoPool.sol b/contracts/TornadoPool.sol index ef2d02d..12a379e 100644 --- a/contracts/TornadoPool.sol +++ b/contracts/TornadoPool.sol @@ -67,11 +67,6 @@ contract TornadoPool is MerkleTreeWithHistory, IERC20Receiver, ReentrancyGuard, event NewNullifier(bytes32 nullifier); event PublicKey(address indexed owner, bytes key); - modifier onlyGovernance() { - require(isCalledByOwner(), "only governance"); - _; - } - modifier onlyMultisig() { require(msg.sender == multisig, "only governance"); _; @@ -192,7 +187,7 @@ contract TornadoPool is MerkleTreeWithHistory, IERC20Receiver, ReentrancyGuard, } } - function configureLimits(uint256 _minimalWithdrawalAmount, uint256 _maximumDepositAmount) public onlyGovernance { + function configureLimits(uint256 _minimalWithdrawalAmount, uint256 _maximumDepositAmount) public onlyMultisig { _configureLimits(_minimalWithdrawalAmount, _maximumDepositAmount); }