Kyber
Interact with the Kyber Protocol
These connectors are used to create a swap on the Kyber protocol.
Sell
This connector is used to buy and sell tokens on Kyber Network
Parameter
Type
Description
buyAddr
address
The address of the token to buy
sellAddr
address
The address of the token to sell
sellAmt
number
The amount of token to sell
unitAmt
number
The amount of buyAmt/sellAmt with slippage
getID
number
ID stores the amount of token deposited
setId
number
ID stores the amount of token deposited
The Sell function acts as both a buy and sell; buyAddr is the desired asset and SellAddr is the asset to be received.
Last updated