did the same changes on avalanche's

This commit is contained in:
bhavik-m 2022-03-09 19:26:07 +05:30
parent d32c628812
commit 766b95c787

View File

@ -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( function importAaveV2ToV3(
address userAccount, address userAccount,
ImportInputData memory inputData ImportInputData memory inputData
@ -118,9 +124,14 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
payable payable
returns (string memory _eventName, bytes memory _eventParam) 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) function migrateAaveV2ToV3(ImportInputData memory inputData)
external external
payable payable