Comp - Mainnet

Claim COMP. COMP-v1.1 connector on mainnet triggers methods like ClaimComp, ClaimCompTwo, ClaimCompThree, delegate. 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 Accrued COMP Token.

spells.add({  connector: "COMP-A",  method: "ClaimComp",  args: [setId]});
Parameter Type Description
setId uint256 ID stores the amount of COMP claimed.

ClaimCompTwo

Claim Accrued COMP Token.

spells.add({  connector: "COMP-A",  method: "ClaimCompTwo",  args: [tokenIds, setId]});
Parameter Type Description
tokenIds string[] Array of supplied and borrowed token IDs.
setId uint256 ID stores the amount of COMP claimed.

ClaimCompThree

Claim Accrued COMP Token.

spells.add({  connector: "COMP-A",  method: "ClaimCompThree",  args: [supplyTokenIds, borrowTokenIds, setId]});
Parameter Type Description
supplyTokenIds string[] Array of supplied tokenIds.
borrowTokenIds string[] Array of borrowed tokenIds.
setId uint256 ID stores the amount of COMP claimed.

Delegate

Delegate votes.

spells.add({  connector: "COMP-A",  method: "delegate",  args: [delegatee]});
Parameter Type Description
delegatee address The address to delegate the votes to.

If you still can't find something you're looking for or have any questions, ask them at our developers community on 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.