diff --git a/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol b/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol index f3b86f3a..8e360e81 100644 --- a/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol +++ b/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol @@ -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"; } diff --git a/contracts/polygon/connectors/aave/v2-to-v3-import/helpers.sol b/contracts/polygon/connectors/aave/v2-to-v3-import/helpers.sol index caf76763..0882c791 100644 --- a/contracts/polygon/connectors/aave/v2-to-v3-import/helpers.sol +++ b/contracts/polygon/connectors/aave/v2-to-v3-import/helpers.sol @@ -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); diff --git a/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol b/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol index fbe6730c..df8b273d 100644 --- a/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol +++ b/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol @@ -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,