mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updated transaferATokensWithCollateral
This commit is contained in:
parent
d4a67f816f
commit
22aa323ff5
|
|
@ -355,7 +355,7 @@ contract AaveHelpers is Helper {
|
|||
0,
|
||||
0
|
||||
);
|
||||
_tokens[_cntr] = _token;
|
||||
_tokens[_cntr] = tokens[i];
|
||||
_cntr++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,11 @@ contract AaveV3ImportResolver is AaveHelpers {
|
|||
AccountInterface(address(this)).isAuth(userAccount),
|
||||
"user-account-not-auth"
|
||||
);
|
||||
} else {
|
||||
require(
|
||||
AccountInterface(userAccount).isAuth(address(this)),
|
||||
"user-account-not-auth"
|
||||
);
|
||||
}
|
||||
require(inputData.supplyTokens.length > 0, "0-length-not-allowed");
|
||||
|
||||
|
|
@ -98,10 +103,17 @@ contract AaveV3ImportResolver is AaveHelpers {
|
|||
ImportInputData memory inputData,
|
||||
bool[] memory enableCollateral
|
||||
) internal returns (string memory _eventName, bytes memory _eventParam) {
|
||||
require(
|
||||
AccountInterface(address(this)).isAuth(userAccount),
|
||||
"user-account-not-auth"
|
||||
);
|
||||
if (instaList.accountID(userAccount) == 0) {
|
||||
require(
|
||||
AccountInterface(address(this)).isAuth(userAccount),
|
||||
"user-account-not-auth"
|
||||
);
|
||||
} else {
|
||||
require(
|
||||
AccountInterface(userAccount).isAuth(address(this)),
|
||||
"user-account-not-auth"
|
||||
);
|
||||
}
|
||||
|
||||
require(inputData.supplyTokens.length > 0, "0-length-not-allowed");
|
||||
require(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user