mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
Update registry.sol
Update in addDsa to add any DSA.
This commit is contained in:
parent
4e423adf1a
commit
1589018a85
|
@ -137,9 +137,11 @@ contract Registry {
|
|||
emit LogUpdateInsureFee(_pool, _newFee);
|
||||
}
|
||||
|
||||
function addDsa(address _pool) external isMaster {
|
||||
function addDsa(address _pool, address _dsa) external isMaster {
|
||||
require(isPool[_pool], "not-pool");
|
||||
address _dsa = instaIndex.build(_pool, 1, address(this));
|
||||
if (_dsa == address(0)) {
|
||||
_dsa = instaIndex.build(_pool, 1, address(this));
|
||||
}
|
||||
isDsa[_pool][_dsa] = true;
|
||||
emit LogNewDSA(_pool, _dsa);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user