Aave

Deposit & Borrow

Aave connector triggers methods like deposit, borrow, withdraw, payback. 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.

Deposit

Lend / Collateralize tokens.

spells.add({
  connector: "aave",
  method: "deposit",
  args: [token, amount, getId, setId]
});
ParameterTypeDescription
tokenaddressThe token address to deposit.
amountnumberThe amount of tokens to deposit. use -1 or `dsa.maxValue` to deposit 100%.
getIdnumberID fetches the amount of token to deposit.
setIdnumberID stores the amount of token deposited.

Withdraw

Withdraw tokens.

spells.add({
  connector: "aave",
  method: "withdraw",
  args: [token, amount, getId, setId]
});
ParameterTypeDescription
tokenaddressThe token address to withdraw. use -1 or `dsa.maxValue` to withdraw 100%.
amountnumberThe amount of tokens to withdraw.
getIdnumberID fetches the amount of token to withdraw.
setIdnumberID stores the amount of token withdrawn.

Borrow

Borrow tokens.

spells.add({
  connector: "aave",
  method: "borrow",
  args: [token, amount, getId, setId]
});
ParameterTypeDescription
tokenaddressThe token address to borrow.
amountnumberThe amount of tokens to borrow.
getIdnumberID fetches the amount of token to borrow.
setIdnumberID stores the amount of token borrowed.

Payback

Payback borrowed ERC20 Tokens.

spells.add({
  connector: "aave",
  method: "payback",
  args: [token, amount, getId, setId]
});
ParameterTypeDescription
tokenaddressThe token address to payback.
amountnumberThe amount of tokens to payback. use -1 or `dsa.maxValue` to payback 100%.
getIdnumberID fetches the amount of token to payback.
setIdnumberID stores the amount of token paid back.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Telegram, 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.

Best way to stay connected with our progress.