Aave V3 Import (permit) - Polygon

Import EOA's aave V3 position to DSA's aave v3 position Aave-v3-import-permit-v1.1 connector on polygon triggers methods like importAave, importAaveWithCollateral. You can view details like source code, ABIs on Polygonscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate MATIC.
  • 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-PERMIT-A",  method: "importAave",  args: [userAccount, inputData, permitData]});
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
permitData SignedPermits The struct containing signed permit data like v,r,s,expiry

ImportAaveWithCollateral

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

spells.add({  connector: "AAVE-V3-IMPORT-PERMIT-A",  method: "importAaveWithCollateral",  args: [userAccount, inputData, permitData, 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
permitData SignedPermits The struct containing signed permit data like v,r,s,expiry
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.