Kyber

Decentralised Swapping

Kyber Network connector triggers methods like buy and sell. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • Use -1 for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Sell

Buy / Sell tokens.

spells.add({
  connector: "kyber",
  method: "sell",
  args: [buyAddr, sellAddr, sellAmt, unitAmt, getId, setId]
});
ParameterTypeDescription
buyAddraddressThe address of the token to buy.
sellAddraddressThe address of the token to buy.
sellAmtnumberThe amount of token to sell.
unitAmtnumberThe amount of buyAmt/sellAmt with slippage.
getIDnumberID stores the amount of token deposited.
setIdnumberID stores the amount of token deposited.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Telegram, Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.

Best way to stay connected with our progress.