mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Updated auth connector address
This commit is contained in:
parent
d0bd1ee78b
commit
f9b3e6b8e4
|
@ -18,7 +18,7 @@ abstract contract AuthorityResolver is Events, Helpers {
|
|||
function add(
|
||||
address authority
|
||||
) external payable returns (string memory _eventName, bytes memory _eventParam) {
|
||||
|
||||
require(authority != address(0), "Not-valid-authority");
|
||||
AccountInterface _dsa = AccountInterface(address(this));
|
||||
if (_dsa.isAuth(authority)) {
|
||||
authority = address(0);
|
||||
|
@ -39,6 +39,7 @@ abstract contract AuthorityResolver is Events, Helpers {
|
|||
address authority
|
||||
) external payable returns (string memory _eventName, bytes memory _eventParam) {
|
||||
require(checkAuthCount() > 1, "Removing-all-authorities");
|
||||
require(authority != address(0), "Not-valid-authority");
|
||||
AccountInterface _dsa = AccountInterface(address(this));
|
||||
if (_dsa.isAuth(authority)) {
|
||||
_dsa.disable(authority);
|
||||
|
@ -52,5 +53,5 @@ abstract contract AuthorityResolver is Events, Helpers {
|
|||
}
|
||||
|
||||
contract ConnectV2Auth is AuthorityResolver {
|
||||
string public constant name = "Auth-v1";
|
||||
string public constant name = "Auth-v1.1";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"1INCH-A": "0x2A6d6d4EE84015F7D64B4d1F66a409bA3f2BAC00",
|
||||
"AAVE-V1-A": "0x127d8cD0E2b2E0366D522DeA53A787bfE9002C14",
|
||||
"AAVE-V2-A": "0x497Bc53507DF17e60F731e9534cff74E8BC9DBb8",
|
||||
"AUTHORITY-A": "0x6CE3e607C808b4f4C26B7F6aDAeB619e49CAbb25",
|
||||
"AUTHORITY-A": "0x351Bb32e90C35647Df7a584f3c1a3A0c38F31c68",
|
||||
"BASIC-A": "0x9926955e0Dd681Dc303370C52f4Ad0a4dd061687",
|
||||
"COMP-A": "0xB446e325D44C52b93eC122Bf76301f235f90B9c9",
|
||||
"COMPOUND-A": "0x911F4e4e762AeFA6F2Fc1b24e6B1A928200a88a8",
|
||||
|
|
Loading…
Reference in New Issue
Block a user