From 766b95c7871e05a0360472496f723a894787f63e Mon Sep 17 00:00:00 2001 From: bhavik-m Date: Wed, 9 Mar 2022 19:26:07 +0530 Subject: [PATCH] did the same changes on avalanche's --- .../connectors/aave/v2-to-v3-import/main.sol | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 f695c23f..7a2b60b0 100644 --- a/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol +++ b/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol @@ -110,6 +110,12 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper { ); } + /** + * @dev Import aave position . + * @notice Import EOA'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 + */ function importAaveV2ToV3( address userAccount, ImportInputData memory inputData @@ -118,9 +124,14 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper { payable returns (string memory _eventName, bytes memory _eventParam) { - (_eventName, _eventParam) = _importAave(userAccount, inputData, false); + (_eventName, _eventParam) = _importAave(userAccount, inputData, true); } + /** + * @dev Migrate aave position . + * @notice Migrate DSA's aave V2 position to DSA's aave v3 position + * @param inputData The struct containing all the neccessary input data + */ function migrateAaveV2ToV3(ImportInputData memory inputData) external payable