Aave v3 Repertoire on Gnosis Chain
Deployments
Action: deposit
Parameters
Name | Type | Description |
---|---|---|
token | string (required) | XDAI | Token symbols | Token addresses |
Deposit token
tokens into Aave v3.
Permissions:
Target: ERC-20
For ERC-20 tokens, the following functions are allowed:
If the token
provided is not supported, 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 spender
equal to PoolV3
amount
-
PoolV3 · supply
Deposit token
and receive aToken
tokens in exchange.
-
Contract:
PoolV3
-
Function:
supply(address,uint256,address,uint16)
Parameter Constraint asset
equal to token
amount
- onBehalfOf
equal to AVATAR
referralCode
-
Target: XDAI
When token
is XDAI, the following functions are allowed:
WrappedTokenGatewayV3 · depositETH
Deposit XDAI and receive aGnoWXDAI
tokens in exchange.
-
Contract:
WrappedTokenGatewayV3
-
Function:
depositETH(address,address,uint16)
Ξ allow sending XDAIParameter Constraint address
equal to PoolV3
onBehalfOf
equal to AVATAR
referralCode
-
Action: withdraw
Parameters
Name | Type | Description |
---|---|---|
token | string (required) | XDAI | 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:
If the token
provided is not supported, an error will be thrown.
PoolV3 · withdraw
Redeem aToken
and withdraw token
tokens.
-
Contract:
PoolV3
-
Function:
withdraw(address,uint256,address)
Parameter Constraint asset
equal to token
amount
- to
equal to AVATAR
Target: XDAI
When token
is XDAI, the following functions are allowed:
aGnoWXDAI · approve
Approve WrappedTokenGatewayV3
to spend aGnoWXDAI
tokens on behalf of the avatar.
-
Contract:
aGnoWXDAI
-
Function:
approve(address,uint256)
Parameter Constraint spender
equal to WrappedTokenGatewayV3
amount
-
WrappedTokenGatewayV3 · withdrawETH
Redeem aGnoWXDAI
and withdraw XDAI tokens.
-
Contract:
WrappedTokenGatewayV3
-
Function:
withdrawETH(address,uint256,address)
Parameter Constraint address
equal to PoolV3
amount
- to
equal to AVATAR
Action: set_collateralisation
Parameters
Name | Type | Description |
---|---|---|
token | string (required) | XDAI | Token symbols | Token addresses |
useAsCollateral | boolean (required) | true | false |
Enable or disable token
as collateral.
Permissions:
If the token
provided is not supported, an error will be thrown.
PoolV3 · setUserUseReserveAsCollateral
Enable or disable token
as collateral.
-
Contract:
PoolV3
-
Function:
setUserUseReserveAsCollateral(address,bool)
Parameter Constraint asset
equal to token
useAsCollateral
equal to useAsCollateral