MORPHO-REWARDS-A

Claim Morpho and Underlying Pool Rewards. Morpho-Rewards-v1.0 connector triggers methods like claimMorpho, claimCompound, claimAave. 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.

ClaimMorpho

Claims rewards.

spells.add({  connector: "MORPHO-REWARDS-A",  method: "claimMorpho",  args: [_account, _claimable, _proof, _setId]});
Parameter Type Description
_account address The address of the claimer.
_claimable uint256 The overall claimable amount of token rewards.
_proof bytes32[] The merkle proof that validates this claim.
_setId uint256 undefined

ClaimCompound

Claims rewards for the given assets.

spells.add({  connector: "MORPHO-REWARDS-A",  method: "claimCompound",  args: [_poolTokenAddresses, _tradeForMorphoToken, _setId]});
Parameter Type Description
_poolTokenAddresses address[] The cToken addresses to claim rewards from.
_tradeForMorphoToken bool Whether or not to trade reward tokens for MORPHO tokens.
_setId uint256 Set ID for claimed amount(in COMP).

ClaimAave

Claims rewards for the given assets.

spells.add({  connector: "MORPHO-REWARDS-A",  method: "claimAave",  args: [_poolTokenAddresses, _tradeForMorphoToken, _setId]});
Parameter Type Description
_poolTokenAddresses address[] The assets to claim rewards from (aToken or variable debt token).
_tradeForMorphoToken bool Whether or not to trade reward tokens for MORPHO tokens.
_setId uint256 Set ID for claimed amount(in reward token).

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.