[OLD] Instadapp Docs
  • Introduction
  • DeFi Smart Account (DSA)
  • DSA SDK
    • Running Instadapp SDK
  • πŸ’»Instadapp GUI
    • Integrated Protocols
      • Aave
      • Compound Finance
      • MakerDAO
    • Strategies
    • Multi-Protocol Refinancing
    • Authorities
    • Debt Collateral Ratio
  • πŸ‘©β€πŸ’» DSA SDK
    • Casting Spells
    • Build a Connector
    • Connectors
      • Basic
      • Authority
      • Instapool
      • MakerDAO
      • Compound
      • Comp
      • Aave
      • dYdX
      • 1Inch
      • Uniswap
      • OasisDEX
      • Kyber
      • Curve sBTC
      • Curve sUSD
      • Curve yUSD
    • Resolvers
      • Accounts
      • Balances
      • Instapool
      • MakerDAO
      • Compound
      • Aave
      • dYdX
      • 1inch
      • Uniswap
      • OasisDex
      • Kyber
      • Curve sBTC
      • Curve sUSD
      • Curve yUSD
    • getId/setId
    • Example Use Cases
      • Long ETH
      • Short DAI
      • Debt Swap
      • Lending Bridge
      • Lending Swap
      • Debt Bridge
  • πŸ‘©β€πŸ« Tutorials
    • Getting Started
    • Moving Assets into DSA
    • In-App Swaps
  • Additional Info
    • Contract Infomation
    • FAQs
    • Security Audits
    • Release History
  • 🌏Links
    • Homepage
    • DApp
    • Discord
    • Contact Us
Powered by GitBook
On this page
  1. πŸ‘©β€πŸ’» DSA SDK
  2. Connectors

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

spells.add({
  connector: "kyber",
  method: "sell",
  args: [buyAddr, sellAddr, sellAmt, unitAmt, getId, setId]
});

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.

PreviousOasisDEXNextCurve sBTC

Last updated 4 years ago