Basic

Deposit & Withdraw from DSA

Instadapp SDK contains several connectors that are used for basic functions; such as depositing and withdrawing tokens DSA. Those connectors are described below:

Deposit

This is the basic connector for deposit

spells.add({
  connector: "basic",
  method: "deposit",
  args: [token, amount, getId, setId]
});

You can always also deposit by sending tokens directly to the DSA address. The DSA will accept ERC-20 tokens directly into its address.

The Instadapp GUI only displays DeFi related assets. Please also note that some exchanges do not allow withdrawals to smart contracts.

Withdraw

This is the basic connector for withdrawals

spells.add({
  connector: "basic",
  method: "withdraw",
  args: [token, amount, to, getId, setId]
});

Withdrawals from the DSA can only be completed from and to authorities of the DSA; if you would like to withdraw to an second account you can make the second account an additional authority to the DSA.

Last updated