[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
  • Claim Comp
  • Claim Comp Two
  • Claim Comp Three
  1. 👩‍💻 DSA SDK
  2. Connectors

Comp

Interact with the COMP token contract

The COMP token is accumulated and distributed to users of the Compound protocol. These connectors are used specifically to interact with the COMP token contract.

COMP tokens are accumulated on a per asset basis.

Claim Comp

This connector claims Comp tokens and stores the amount of token claimed as SetId

spells.add({
  connector: "comp",
  method: "ClaimComp",
  args: [setId]
});

Parameter

Type

Description

setId

number

ID stores the amount of token claimed

Claim Comp Two

This connector claims Comp tokens of an array of tokens supplied and borrowed. This connector stores the amount of token claimed in SetId

spells.add({
  connector: "comp",
  method: "ClaimCompTwo",
  args: [tokens, setId]
});

Parameter

Type

Description

tokens

address[0x..,0x..]

Array of tokens supplied and borrowed

setId

number

ID stores the amount of token claimed

Claim Comp Three

This connector claims Comp tokens of an array of tokens supplied and a second array for tokens borrowed. This connector stores the amount of tokens claimed in SetId

spells.add({
  connector: "comp",
  method: "ClaimCompThree",
  args: [supplyTokens, borrowTokens, setId]
});

Parameter

Type

Description

supplyTokens

address[0x..,0x..]

Array of tokens supplied

borrowTokens

address[0x..,0x..]

Array of tokens borrowed

setId

number

ID stores the amount of token claimed

PreviousCompoundNextAave

Last updated 4 years ago