Aave v3 on Base
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.
If a token provided in the targets parameter is not supported, an error will be thrown.
TARGET · approve
Approve PoolV3 to spend TARGET tokens on behalf of the avatar.
- 
Contract: TARGET
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to PoolV3amount- 
PoolV3 · supply
Deposit TARGET and receive aToken tokens in exchange.
- 
Contract: PoolV3
- 
Function: supply(address,uint256,address,uint16)Parameter Constraint assetequal to TARGETamount- onBehalfOfequal to AVATARreferralCode- 
PoolV3 · setUserUseReserveAsCollateral
Enable or disable TARGET as collateral.
- 
Contract: PoolV3
- 
Function: setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral- 
PoolV3 · withdraw
Redeem aToken and withdraw TARGET tokens.
- 
Contract: PoolV3
- 
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:
aBasWETH · approve
Approve WrappedTokenGatewayV3 to spend aBasWETH tokens on behalf of the avatar.
- 
Contract: aBasWETH
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to WrappedTokenGatewayV3amount- 
WrappedTokenGatewayV3 · depositETH
Deposit ETH and receive aBasWETH tokens in exchange.
- 
Contract: WrappedTokenGatewayV3
- 
Function: depositETH(address,address,uint16)Ξ allow sending ETHParameter Constraint addressequal to PoolV3onBehalfOfequal to AVATARreferralCode- 
PoolV3 · setUserUseReserveAsCollateral
Enable or disable TARGET as collateral.
- 
Contract: PoolV3
- 
Function: setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral- 
WrappedTokenGatewayV3 · withdrawETH
Redeem aBasWETH and withdraw ETH tokens.
- 
Contract: WrappedTokenGatewayV3
- 
Function: withdrawETH(address,uint256,address)Parameter Constraint addressequal to PoolV3amount- 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.
If a token provided in the targets parameter is not supported, an error will be thrown.
TARGET · approve
Approve PoolV3 to spend TARGET tokens on behalf of the avatar.
- 
Contract: TARGET
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to PoolV3amount- 
PoolV3 · borrow
Receive TARGET and variableDebtToken tokens.
- 
Contract: PoolV3
- 
Function: borrow(address,uint256,uint256,uint16,address)Parameter Constraint assetequal to TARGETamount- interestRateMode- referralCode- onBehalfOfequal to AVATAR
PoolV3 · repay
Repay borrowed TARGET tokens.
- 
Contract: PoolV3
- 
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 WrappedTokenGatewayV3 to borrow variableDebtWETH tokens.
- 
Contract: variableDebtWETH
- 
Function: approveDelegation(address,uint256)Parameter Constraint delegateeequal to WrappedTokenGatewayV3amount- 
WrappedTokenGatewayV3 · borrowETH
Receive ETH and variableDebtWETH tokens.
- 
Contract: WrappedTokenGatewayV3
- 
Function: borrowETH(address,uint256,uint256,uint16)Parameter Constraint addressequal to PoolV3amount- interestRateMode- referralCode- 
WrappedTokenGatewayV3 · repayETH
Repay borrowed ETH.
- 
Contract: WrappedTokenGatewayV3
- 
Function: repayETH(address,uint256,uint256,address)Ξ allow sending ETHParameter Constraint addressequal to PoolV3amount- rateMode- onBehalfOfequal to AVATAR