Comp

Claim Comp

Compound connector triggers methods like deposit, borrow, withdraw, payback, and more. You can view details like source code, ABIs on Etherscan.

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

ClaimComp

Claim Comp tokens and stores the amount of token claimed with setId

spells.add({
  connector: "comp",
  method: "ClaimComp",
  args: [setId]
});
ParameterTypeDescription
setIdnumberID stores the amount of token claimed.

ClaimCompTwo

Claim Comp with array of tokens supplied and borrowed and stores the amount of token claimed with setId

spells.add({
  connector: "comp",
  method: "ClaimCompTwo",
  args: [tokens, setId]
});
ParameterTypeDescription
tokensaddress[]Array of tokens supplied and borrowed.
setIdnumberID stores the amount of token claimed.

ClaimCompThree

Claim Comp with array of tokens supplied and array of tokens borrowed and stores the amount of token claimed with setId

spells.add({
  connector: "comp",
  method: "ClaimCompThree",
  args: [supplyTokens, borrowTokens, setId]
});
ParameterTypeDescription
supplyTokensaddress[]Array of tokens supplied.
borrowTokensaddress[]Array of tokens borrowed.
setIdnumberID stores the amount of token claimed.

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.