dYdX

Interact with the dy/dx Protocol

Deposit

This connector deposits assets into the dYdX protocol

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

Withdraw

This connector withdraw tokens from the dYdX protocol

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

Borrow

This connector borrows tokens from the dYdX protocol

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

Payback

This connector pays back debt from the dYdX protocol

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

Last updated