minor fix

This commit is contained in:
pradyuman-verma 2022-03-10 16:32:34 +05:30
parent 8c2fab7bd5
commit ea5d7f611d
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F
3 changed files with 11 additions and 2 deletions

View File

@ -145,6 +145,6 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
}
}
contract ConnectV2AaveV2ToV3MigrationPolygon is _AaveV2ToV3MigrationResolver {
contract ConnectV2AaveV2ToV3MigrationAvalanche is _AaveV2ToV3MigrationResolver {
string public constant name = "Aave-Import-v2-to-v3";
}

View File

@ -175,7 +175,9 @@ contract _AaveHelper is Helper {
address _token = inputData.supplyTokens[i] == maticAddr
? wmaticAddr
: inputData.supplyTokens[i];
(address _aToken, , ) = aaveV2Data.getReserveTokensAddresses(_token);
(address _aToken, , ) = aaveV2Data.getReserveTokensAddresses(
_token
);
data._supplyTokens[i] = _token;
data.aTokens[i] = ATokenV2Interface(_aToken);
data.supplyAmts[i] = data.aTokens[i].balanceOf(userAccount);

View File

@ -11,6 +11,13 @@ import "./events.sol";
* @dev migrate aave V2 position to aave v3 position
*/
contract _AaveV2ToV3MigrationResolver is _AaveHelper {
/**
* @dev Import aave position .
* @notice Import EOA's or DSA's aave V2 position to DSA's aave v3 position
* @param userAccount The address of the EOA from which aave position will be imported
* @param inputData The struct containing all the neccessary input data
* @param doImport boolean, to support DSA v2->v3 migration
*/
function _importAave(
address userAccount,
ImportInputData memory inputData,