Aave v3 Repertoire on Ethereum
Deployments
| Name | Address |
|---|---|
PoolCoreV3 | 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 (opens in a new tab) |
WrappedTokenGatewayCoreV3 | 0xA434D495249abE33E031Fe71a969B81f3c07950D (opens in a new tab) |
aEthWETH | 0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8 (opens in a new tab) |
PoolPrimeV3 | 0x4e033931ad43597d96D6bcc25c280717730B58B1 (opens in a new tab) |
WrappedTokenGatewayPrimeV3 | 0x0B8C700917a6991FEa7198dDFC80bc8962b5055D (opens in a new tab) |
aEthLidoWeth | 0xfA1fDbBD71B0aA16162D76914d69cD8CB3Ef92da (opens in a new tab) |
PoolEtherFiV3 | 0x0AA97c284e98396202b6A04024F5E2c65026F3c0 (opens in a new tab) |
Action: deposit
Parameters
| Name | Type | Description |
|---|---|---|
market | string (optional) | Market names | Market poolAddresses (default: Core) |
token | string (required) | ETH | Token symbols | Token addresses |
Deposit token tokens into the specified market in Aave v3.
Permissions:
Target: ERC-20
For ERC-20 tokens, the following functions are allowed:
The MARKET parameter determines which Aave market is targeted (Core,
Prime, or EtherFi). Provide either the market name or the pool address. If
omitted, the default market is Core.
The POOLV3 placeholder represents the pool of the selected MARKET.
If the token provided is not supported by the selected market, an error
will be thrown.
token · approve
Approve POOLV3 to spend token tokens on behalf of the avatar.
-
Contract:
token -
Function:
approve(address,uint256)Parameter Constraint spenderequal to POOLV3amount-
POOLV3 · supply
Deposit token and receive aToken tokens in exchange.
-
Contract:
POOLV3 -
Function:
supply(address,uint256,address,uint16)Parameter Constraint assetequal to tokenamount- onBehalfOfequal to AVATARreferralCode-
Target: ETH
When token is ETH, the following functions are allowed:
The aETH placeholder represents the aToken for ETH in the selected market.
The POOLV3 placeholder represents the pool of the selected MARKET.
The WRAPPEDTOKENGATEWAYV3 placeholder represents the Wrapped Token Gateway
of the selected MARKET.
WRAPPEDTOKENGATEWAYV3 · depositETH
Deposit ETH and receive aETH tokens in exchange.
-
Contract:
WRAPPEDTOKENGATEWAYV3 -
Function:
depositETH(address,address,uint16)Ξ allow sending ETHParameter Constraint addressequal to POOLV3onBehalfOfequal to AVATARreferralCode-
Action: withdraw
Parameters
| Name | Type | Description |
|---|---|---|
market | string (optional) | Market names | Market poolAddresses (default: Core) |
token | string (required) | ETH | Token symbols | Token addresses |
Withdraw token tokens from the specified market in Aave v3.
Permissions:
Target: ERC-20
For ERC-20 tokens, the following functions are allowed:
The MARKET parameter determines which Aave market is targeted (Core,
Prime, or EtherFi). Provide either the market name or the pool address. If
omitted, the default market is Core.
The POOLV3 placeholder represents the pool of the selected MARKET.
If the token provided is not supported by the selected market, an error
will be thrown.
POOLV3 · withdraw
Redeem aToken and withdraw token tokens.
-
Contract:
POOLV3 -
Function:
withdraw(address,uint256,address)Parameter Constraint assetequal to tokenamount- toequal to AVATAR
Target: ETH
When token is ETH, the following functions are allowed:
The aETH placeholder represents the aToken for ETH in the selected market.
The POOLV3 placeholder represents the pool of the selected MARKET.
The WRAPPEDTOKENGATEWAYV3 placeholder represents the Wrapped Token Gateway
of the selected MARKET.
aETH · approve
Approve WRAPPEDTOKENGATEWAYV3 to spend aETH tokens on behalf of the avatar.
-
Contract:
aETH -
Function:
approve(address,uint256)Parameter Constraint spenderequal to WRAPPEDTOKENGATEWAYV3amount-
WRAPPEDTOKENGATEWAYV3 · withdrawETH
Redeem aETH and withdraw ETH tokens.
-
Contract:
WRAPPEDTOKENGATEWAYV3 -
Function:
withdrawETH(address,uint256,address)Parameter Constraint addressequal to POOLV3amount- toequal to AVATAR
Action: set_collateralisation
Parameters
| Name | Type | Description |
|---|---|---|
market | string (optional) | Market names | Market poolAddresses (default: Core) |
token | string (required) | ETH | Token symbols | Token addresses |
useAsCollateral | boolean (required) | true | false |
Enable or disable token as collateral in the specified market.
Permissions:
If the token provided is not supported by the selected market, an error
will be thrown.
POOLV3 · setUserUseReserveAsCollateral
Enable or disable token as collateral.
-
Contract:
POOLV3 -
Function:
setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to tokenuseAsCollateralequal to useAsCollateral