Aave V2 to V3 import

migrate aave V2 position to aave v3 position

Aave-Import-v2-to-v3 connector triggers methods like importAaveV2ToV3, migrateAaveV2ToV3. You can view details like source code, ABIs on Snowtrace.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate AVAX.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

ImportAaveV2ToV3

Import EOA's aave V2 position to DSA's aave v3 position

spells.add({
  connector: "AAVE-IMPORT-V2-V3-A",
  method: "importAaveV2ToV3",
  args: [userAccount, inputData]
});
Parameter Type Description
userAccount address The address of the EOA from which aave position will be imported
inputData ImportInputData The struct containing all the neccessary input data

MigrateAaveV2ToV3

Migrate DSA's aave V2 position to DSA's aave v3 position

spells.add({
  connector: "AAVE-IMPORT-V2-V3-A",
  method: "migrateAaveV2ToV3",
  args: [inputData]
});
Parameter Type Description
inputData ImportInputData The struct containing all the neccessary input data

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.