dYdX
Interact with the dy/dx Protocol
Deposit
This connector deposits assets into the dYdX protocol
Parameter
Type
Description
token
address
The token address to deposit.
amount
number
The amount of tokens to deposit. use -1 or `dsa.maxValue` to deposit 100%.
getId
number
ID fetches the amount of token to deposit.
setId
number
ID stores the amount of token deposited.
Withdraw
This connector withdraw tokens from the dYdX protocol
Parameter
Type
Description
token
address
The token address to withdraw.
amount
number
The amount of tokens to withdraw. use -1 or `dsa.maxValue` to withdraw 100%.
getId
number
ID fetches the amount of token to withdraw
setId
number
ID stores the amount of token withdrawn
Borrow
This connector borrows tokens from the dYdX protocol
Parameter
Type
Description
token
address
The token address to borrow.
amount
number
The amount of tokens to borrow.
getId
number
ID fetches the amount of token to borrow
setId
number
ID stores the amount of token borrowed
Payback
This connector pays back debt from the dYdX protocol
Parameter
Type
Description
token
address
The token address to payback.
amount
number
The amount of tokens to payback. use -1 or `dsa.maxValue` to payback 100%.
getId
number
ID fetches the amount of token to pay back
setId
number
ID stores the amount of token paid back
Last updated