Aave v2 on Ethereum
Deployments
Action: deposit
Parameters
| Name | Type | Description | 
|---|---|---|
| targets | string[] (required) | ETH | Tokensymbols |Tokenaddresses | 
Target: ERC-20
For targets that are ERC-20 tokens, the following functions are allowed:
TARGET below refers to the ERC-20 token address of each element given in
targets.
TARGET · approve
Approve AaveLendingPoolV2 to spend TARGET tokens on behalf of the avatar.
- 
Contract: TARGET
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to AaveLendingPoolV2amount- 
If TARGET is WETH
aWETH · approve
Approve WrappedTokenGatewayV2 to spend aWETH tokens on behalf of the avatar.
- 
Contract: aWETH
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to WrappedTokenGatewayV2amount- 
AaveLendingPoolV2 · deposit
Deposit TARGET and receive aToken tokens in exchange.
- 
Contract: AaveLendingPoolV2
- 
Function: deposit(address,uint256,address,uint16)Parameter Constraint assetequal to TARGETamount- onBehalfOfequal to AVATARreferralCode- 
AaveLendingPoolV2 · setUserUseReserveAsCollateral
Enable or disable TARGET as collateral.
- 
Contract: AaveLendingPoolV2
- 
Function: setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral- 
AaveLendingPoolV2 · withdraw
Redeem aToken and withdraw TARGET tokens.
- 
Contract: AaveLendingPoolV2
- 
Function: withdraw(address,uint256,address)Parameter Constraint assetequal to TARGETamount- toequal to AVATAR
Target: ETH
For ETH as an element of targets, the following functions are allowed:
aWETH · approve
Approve WrappedTokenGatewayV2 to spend aWETH tokens on behalf of the avatar.
- 
Contract: aWETH
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to WrappedTokenGatewayV2amount- 
WrappedTokenGatewayV2 · depositETH
Deposit ETH and receive aWETH tokens in exchange.
- 
Contract: WrappedTokenGatewayV2
- 
Function: depositETH(address,address,uint16)Ξ allow sending ETHParameter Constraint addressequal to AaveLendingPoolV2onBehalfOfequal to AVATARreferralCode- 
AaveLendingPoolV2 · setUserUseReserveAsCollateral
Enable or disable TARGET as collateral.
- 
Contract: AaveLendingPoolV2
- 
Function: setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral- 
WrappedTokenGatewayV2 · withdrawETH
Redeem aWETH and withdraw ETH tokens.
- 
Contract: WrappedTokenGatewayV2
- 
Function: withdrawETH(address,uint256,address)Parameter Constraint addressequal to AaveLendingPoolV2amount- toequal to AVATAR
Action: borrow
Parameters:
| Name | Type | Description | 
|---|---|---|
| targets | string[] (required) | ETH | Tokensymbols |Tokenaddresses | 
Target: ERC-20
For targets that are ERC-20 tokens, the following functions are allowed:
TARGET below refers to the ERC-20 token address of each element given in
targets.
TARGET · approve
Approve AaveLendingPoolV2 to spend TARGET tokens on behalf of the avatar.
- 
Contract: TARGET
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to AaveLendingPoolV2amount- 
AaveLendingPoolV2 · borrow
Receive TARGET and debtToken (stable or variable debt) tokens.
- 
Contract: AaveLendingPoolV2
- 
Function: borrow(address,uint256,uint256,uint16,address)Parameter Constraint assetequal to TARGETamount- interestRateMode- referralCode- onBehalfOfequal to AVATAR
AaveLendingPoolV2 · repay
Repay borrowed TARGET tokens.
- 
Contract: AaveLendingPoolV2
- 
Function: repay(address,uint256,uint256,address)Parameter Constraint assetequal to TARGETamount- rateMode- onBehalfOfequal to AVATAR
Target: ETH
For ETH as an element of targets, the following functions are allowed:
variableDebtWETH · approveDelegation
Set the amount of allowance for WrappedTokenGatewayV2 to borrow variableDebtWETH tokens.
- 
Contract: variableDebtWETH
- 
Function: approveDelegation(address,uint256)Parameter Constraint delegateeequal to WrappedTokenGatewayV2amount- 
stableDebtWETH · approveDelegation
Set the amount of allowance for WrappedTokenGatewayV2 to borrow stableDebtWETH tokens.
- 
Contract: stableDebtWETH
- 
Function: approveDelegation(address,uint256)Parameter Constraint delegateeequal to WrappedTokenGatewayV2amount- 
WrappedTokenGatewayV2 · borrowETH
Receive ETH and debtETH (stable or variable debt) tokens.
- 
Contract: WrappedTokenGatewayV2
- 
Function: borrowETH(address,uint256,uint256,uint16)Parameter Constraint addressequal to AaveLendingPoolV2amount- interestRateMode- referralCode- 
WrappedTokenGatewayV2 · repayETH
Repay borrowed ETH.
- 
Contract: WrappedTokenGatewayV2
- 
Function: repayETH(address,uint256,uint256,address)Ξ allow sending ETHParameter Constraint addressequal to AaveLendingPoolV2amount- rateMode- onBehalfOfequal to AVATAR
Action: stake
Parameters:
| Name | Type | Constraint | 
|---|---|---|
| targets | string[] (required) | StakeTokensymbols |StakeTokenaddresses | 
Target: AAVE
If the AAVE token is given as an element of targets, the following functions will be allowed:
AAVE · approve
Approve stkAAVE to spend AAVE tokens on behalf of avatar.
- 
Contract: AAVE
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to stkAAVEamount- 
stkAAVE · stake
Stake AAVE tokens in Aave's safety module.
- 
Contract: stkAAVE
- 
Function: stake(address,uint256)Parameter Constraint onBehalfOfequal to AVATARamount- 
stkAAVE · claimRewardsAndStake
Claim AAVE rewards accrued from staking AAVE and restake.
- 
Contract: stkAAVE
- 
Function: claimRewardsAndStake(address,uint256)Parameter Constraint toequal to AVATARamount- 
stkAAVE · claimRewards
Claim AAVE rewards accrued from staking AAVE.
- 
Contract: stkAAVE
- 
Function: claimRewards(address,uint256)Parameter Constraint toequal to AVATARamount- 
stkAAVE · cooldown
Initiates a 20 days cooldown period. Ince this is over, the 2 days unstaking window opens.
- Contract: stkAAVE
- Function: cooldown()
stkAAVE · unstake
Unstake AAVE can only be called during the 2 days unstaking window after the 20 days cooldown period.
- 
Contract: stkAAVE
- 
Function: redeem(address,uint256)Parameter Constraint toequal to AVATARamount- 
Target: ABPTV2
If the ABPTV2 token is given as an element of targets, the following functions will be allowed:
ABPTV2 · approve
Approve stkABPTv2 to spend ABPTV2 tokens on behalf of the avatar.
- 
Contract: ABPTV2
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to stkABPTv2amount- 
stkABPTv2 · stake
Stake ABPTV2 in Aave's safety module.
- 
Contract: stkABPTv2
- 
Function: stake(address,uint256)Parameter Constraint onBehalfOfequal to AVATARamount- 
stkABPTv2 · claimRewards
Claim AAVE rewards accrued from staking ABPTV2.
- 
Contract: stkABPTv2
- 
Function: claimRewards(address,uint256)Parameter Constraint toequal to AVATARamount- 
stkABPTv2 · cooldown
Initiates a 20 days cooldown period. Once this is over, the 2 days unstaking window opens.
- Contract: stkABPTv2
- Function: cooldown()
stkABPTv2 · unstake
Unstake ABPTV2 can only be called during the 2 days unstaking window after the 20 days cooldown period.
- 
Contract: stkABPTv2
- 
Function: redeem(address,uint256)Parameter Constraint toequal to AVATARamount- 
Target: GHO
If the GHO token is given as an element of targets, the following functions will be allowed:
GHO · approve
Approve stkGHO to spend GHO tokens on behalf of the avatar.
- 
Contract: GHO
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to stkGHOamount- 
stkGHO · stake
Stake GHO in Aave's safety module.
- 
Contract: stkGHO
- 
Function: stake(address,uint256)Parameter Constraint onBehalfOfequal to AVATARamount- 
stkGHO · claimRewards
Claim AAVE rewards accrued from staking GHO.
- 
Contract: stkGHO
- 
Function: claimRewards(address,uint256)Parameter Constraint toequal to AVATARamount- 
stkGHO · cooldown
Initiates a 20 days cooldown period. Once this is over, the 2 days unstaking window opens.
- Contract: stkGHO
- Function: cooldown()
stkGHO · unstake
Unstake GHO can only be called during the 2 days unstaking window after the 20 days cooldown period.
- 
Contract: stkGHO
- 
Function: redeem(address,uint256)Parameter Constraint toequal to AVATARamount- 
Action: delegate
Parameters:
| Name | Type | Description | 
|---|---|---|
| targets | string[] (required) | DelegateTokensymbols |DelegateTokenaddresses | 
| delegatee | string (required) | Address of the delegatee | 
DELEGATEE below refers to the address given for the action's delegatee
parameter.
Target: AAVE
If the AAVE token is given as an element of targets, the following functions will be allowed:
AAVE · delegate
Delegate the AAVE voting power for all type of actions (voting and proposition).
- 
Contract: AAVE
- 
Function: delegate(address)Parameter Constraint delegateeequal to DELEGATEE
AAVE · delegateByType
Delegate the AAVE voting power by type of action.
- 
Contract: AAVE
- 
Function: delegateByType(address,uint8)Parameter Constraint delegateeequal to DELEGATEEdelegationType- 
Target: stkAAVE
If the stkAAVE token is given as an element of targets, the following functions will be allowed:
stkAAVE · delegate
Delegate the stkAAVE voting power for all type of actions (voting and proposition).
- 
Contract: stkAAVE
- 
Function: delegate(address)Parameter Constraint delegateeequal to DELEGATEE
stkAAVE · delegateByType
Delegate the stkAAVE voting power by type of action.
- 
Contract: stkAAVE
- 
Function: delegateByType(address,uint8)Parameter Constraint delegateeequal to DELEGATEEdelegationType- 
Target: aEthAAVE
If the aEthAAVE token is given as an element of targets, the following functions will be allowed:
aEthAAVE · delegate
Delegate the aEthAAVE voting power for all type of actions (voting and proposition).
- 
Contract: aEthAAVE
- 
Function: delegate(address)Parameter Constraint delegateeequal to DELEGATEE
aEthAAVE · delegateByType
Delegate the aEthAAVE voting power by type of action.
- 
Contract: aEthAAVE
- 
Function: delegateByType(address,uint8)Parameter Constraint delegateeequal to DELEGATEEdelegationType-