Compound-III-Rewards - Mainnet

Rewards. CompoundV3Rewards-v1.0 connector on mainnet triggers methods like claimRewards, claimRewardsOnBehalfOf. 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.

ClaimRewards

Claim rewards and interests accrued.

spells.add({  connector: "COMPOUND-V3-REWARDS-A",  method: "claimRewards",  args: [market, setId]});
Parameter Type Description
market address The address of the market.
setId uint256 ID stores the amount of rewards claimed.

ClaimRewardsOnBehalfOf

Claim rewards and interests accrued and transfer to dest address.

spells.add({  connector: "COMPOUND-V3-REWARDS-A",  method: "claimRewardsOnBehalfOf",  args: [market, owner, to, setId]});
Parameter Type Description
market address The address of the market.
owner address The account of which the rewards are to be claimed.
to address The account where to transfer the claimed rewards.
setId uint256 ID stores the amount of rewards claimed.

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.