mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
change configureLimits() access to multisig
This commit is contained in:
parent
1f1964417a
commit
bc2433be08
@ -67,11 +67,6 @@ contract TornadoPool is MerkleTreeWithHistory, IERC20Receiver, ReentrancyGuard,
|
|||||||
event NewNullifier(bytes32 nullifier);
|
event NewNullifier(bytes32 nullifier);
|
||||||
event PublicKey(address indexed owner, bytes key);
|
event PublicKey(address indexed owner, bytes key);
|
||||||
|
|
||||||
modifier onlyGovernance() {
|
|
||||||
require(isCalledByOwner(), "only governance");
|
|
||||||
_;
|
|
||||||
}
|
|
||||||
|
|
||||||
modifier onlyMultisig() {
|
modifier onlyMultisig() {
|
||||||
require(msg.sender == multisig, "only governance");
|
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);
|
_configureLimits(_minimalWithdrawalAmount, _maximumDepositAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user