mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
Updated comments
This commit is contained in:
parent
cb545f8fa3
commit
72f42ac9bc
|
@ -84,9 +84,9 @@ contract Registry {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev update pool fee
|
* @dev update pool cap
|
||||||
* @param _pool pool address
|
* @param _pool pool address
|
||||||
* @param _newCap new fee amount
|
* @param _newCap new cap amount
|
||||||
*/
|
*/
|
||||||
function updateCap(address _pool, uint _newCap) external isMaster {
|
function updateCap(address _pool, uint _newCap) external isMaster {
|
||||||
require(_pool != address(0), "invalid-pool");
|
require(_pool != address(0), "invalid-pool");
|
||||||
|
@ -101,6 +101,7 @@ contract Registry {
|
||||||
*/
|
*/
|
||||||
function addSettleLogic(address _pool, address _logic) external isMaster {
|
function addSettleLogic(address _pool, address _logic) external isMaster {
|
||||||
require(_pool != address(0), "invalid-pool");
|
require(_pool != address(0), "invalid-pool");
|
||||||
|
require(!settleLogic[_pool][_logic], "already-settle-added");
|
||||||
settleLogic[_pool][_logic] = true;
|
settleLogic[_pool][_logic] = true;
|
||||||
emit LogAddSettleLogic(_pool, _logic);
|
emit LogAddSettleLogic(_pool, _logic);
|
||||||
}
|
}
|
||||||
|
@ -112,6 +113,7 @@ contract Registry {
|
||||||
*/
|
*/
|
||||||
function removeSettleLogic(address _pool, address _logic) external isMaster {
|
function removeSettleLogic(address _pool, address _logic) external isMaster {
|
||||||
require(_pool != address(0), "invalid-pool");
|
require(_pool != address(0), "invalid-pool");
|
||||||
|
require(settleLogic[_pool][_logic], "already-settle-removed");
|
||||||
delete settleLogic[_pool][_logic];
|
delete settleLogic[_pool][_logic];
|
||||||
emit LogRemoveSettleLogic(_pool, _logic);
|
emit LogRemoveSettleLogic(_pool, _logic);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user