mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor fix
This commit is contained in:
parent
8c2fab7bd5
commit
ea5d7f611d
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user