Aave V3 Rewards - Optimism
Claim Aave v3 rewards. Aave-V3-Incentives-v1 connector on optimism triggers methods like claim, claimAll. 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
andsetId
, pass 0.
Claim
Claim Pending Rewards from Aave v3 incentives contract.
spells.add({ connector: "AAVE-V3-CLAIM-A", method: "claim", args: [assets, amt, reward, getId, setId]});
Parameter | Type | Description |
---|---|---|
assets | address[] | The list of assets supplied and borrowed. |
amt | uint256 | The amount of reward to claim. (uint(-1) for max) |
reward | address | The address of reward token to claim. |
getId | uint256 | ID to retrieve amt. |
setId | uint256 | ID stores the amount of rewards claimed. |
ClaimAll
Claim All Pending Rewards from Aave v3 incentives contract.
spells.add({ connector: "AAVE-V3-CLAIM-A", method: "claimAll", args: [assets]});
Parameter | Type | Description |
---|---|---|
assets | address[] | The list of assets supplied and borrowed. |
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.