mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
minor fixes
This commit is contained in:
parent
f8b163801e
commit
6b80b09bb8
|
@ -22,7 +22,7 @@ contract Registry {
|
|||
event LogAddSettleLogic(address indexed token, address indexed logic);
|
||||
event LogRemoveSettleLogic(address indexed token, address indexed logic);
|
||||
event LogFlusherConnectorsEnable(address indexed connector);
|
||||
event LogflusherConnectorsDisable(address indexed connector);
|
||||
event LogFlusherConnectorsDisable(address indexed connector);
|
||||
|
||||
IndexInterface public constant instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);
|
||||
|
||||
|
@ -34,7 +34,7 @@ contract Registry {
|
|||
mapping (address => uint) public poolCap;
|
||||
mapping (address => uint) public fee;
|
||||
mapping (address => mapping(address => bool)) public settleLogic;
|
||||
mapping(address => bool) public flusherConnectors;
|
||||
mapping (address => bool) public flusherConnectors;
|
||||
|
||||
modifier isMaster() {
|
||||
require(msg.sender == instaIndex.master(), "not-master");
|
||||
|
@ -200,7 +200,7 @@ contract Registry {
|
|||
require(!flusherConnectors[_connector], "already-enabled");
|
||||
require(_connector != address(0), "invalid-connector");
|
||||
flusherConnectors[_connector] = true;
|
||||
emit LogConnectorEnable(_connector);
|
||||
emit LogFlusherConnectorsEnable(_connector);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,7 @@ contract Registry {
|
|||
function disableConnector(address _connector) external isChief {
|
||||
require(flusherConnectors[_connector], "already-disabled");
|
||||
delete flusherConnectors[_connector];
|
||||
emit LogConnectorDisable(_connector);
|
||||
emit LogFlusherConnectorsDisable(_connector);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user