Skip to content

Instantly share code, notes, and snippets.

@Sowmayjain
Created April 29, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sowmayjain/238e52aaa6b365da4df21882eeb4a159 to your computer and use it in GitHub Desktop.
Save Sowmayjain/238e52aaa6b365da4df21882eeb4a159 to your computer and use it in GitHub Desktop.
let token1 = "0x..."
let token2 = "0x..."
let token3 = "0x..."
let amount = 0 // set amount to transfer
let to = "0x..." // target address to withdraw
spells.add({
connector: "basic",
method: "deposit",
args: [token1, amount, getId, setId]
});
spells.add({
connector: "basic",
method: "deposit",
args: [token2, amount, getId, setId]
});
spells.add({
connector: "basic",
method: "deposit",
args: [token3, amount, getId, setId]
});
spells.add({
connector: "basic",
method: "withdraw",
args: [token1, amount, to, getId, setId]
});
spells.add({
connector: "basic",
method: "withdraw",
args: [token2, amount, to, getId, setId]
});
spells.add({
connector: "basic",
method: "withdraw",
args: [token3, amount, to, getId, setId]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment