diff --git a/contracts/registry.sol b/contracts/registry.sol index d54dd96..9570d5d 100644 --- a/contracts/registry.sol +++ b/contracts/registry.sol @@ -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); }