Aave V3 Import

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

Aave-v3-import-v1.1 connector triggers methods like importAave, importAaveWithCollateral. You can view details like source code, ABIs on Etherscan.

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

ImportAave

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

spells.add({
  connector: "AAVE-V3-IMPORT-A",
  method: "importAave",
  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

ImportAaveWithCollateral

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

spells.add({
  connector: "AAVE-V3-IMPORT-A",
  method: "importAaveWithCollateral",
  args: [userAccount, inputData, enableCollateral]
});
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
enableCollateral bool[] The boolean array to enable selected collaterals in the imported position

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.