Aave v3 on Base

Deployments

NameAddress
AaveLendingPoolV30xA238Dd80C259a72e81d7e4664a9801593F98d1c5 (opens in a new tab)
WrappedTokenGatewayV30x729b3EA8C005AbC58c9150fb57Ec161296F06766 (opens in a new tab)
aBasWETH0xD4a0e0b9149BCee3C920d2E00b5dE09138fd8bb7 (opens in a new tab)
variableDebtWETH0x24e6e0795b3c7c71D965fCc4f371803d1c1DcA1E (opens in a new tab)

Action: deposit

Parameters

NameTypeDescription
targetsstring[] (required)ETH | Token symbols | Token addresses

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 AaveLendingPoolV3 to spend TARGET tokens on behalf of the avatar.

  • Contract: TARGET

  • Function: approve(address,uint256)

    ParameterConstraint
    spenderequal to AaveLendingPoolV3
    amount-

AaveLendingPoolV3 · supply

Deposit TARGET and receive aToken tokens in exchange.

  • Contract: AaveLendingPoolV3

  • Function: supply(address,uint256,address,uint16)

    ParameterConstraint
    assetequal to TARGET
    amount-
    onBehalfOfequal to AVATAR
    referralCode-

AaveLendingPoolV3 · setUserUseReserveAsCollateral

Set/unset deposited asset as collateral.

  • Contract: AaveLendingPoolV3

  • Function: setUserUseReserveAsCollateral(address,bool)

    ParameterConstraint
    assetequal to TARGET
    useAsCollateral-

AaveLendingPoolV3 · withdraw

Redeem aToken and withdraw TARGET tokens.

  • Contract: AaveLendingPoolV3

  • Function: withdraw(address,uint256,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    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)

    ParameterConstraint
    spenderequal to WrappedTokenGatewayV3
    amount-

WrappedTokenGatewayV3 · depositETH

Deposit ETH and receive aBasWETH tokens in exchange.

  • Contract: WrappedTokenGatewayV3

  • Function: depositETH(address,address,uint16) Ξ allow sending ETH

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    onBehalfOfequal to AVATAR
    referralCode-

AaveLendingPoolV3 · setUserUseReserveAsCollateral

Set/unset deposited asset as collateral.

  • Contract: AaveLendingPoolV3

  • Function: setUserUseReserveAsCollateral(address,bool)

    ParameterConstraint
    assetequal to TARGET
    useAsCollateral-

WrappedTokenGatewayV3 · withdrawETH

Redeem aBasWETH and withdraw ETH tokens.

  • Contract: WrappedTokenGatewayV3

  • Function: withdrawETH(address,uint256,address)

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    amount-
    toequal to AVATAR

Action: borrow

Parameters:

NameTypeDescription
targetsstring[] (required)ETH | Token symbols | Token addresses

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 AaveLendingPoolV3 to spend TARGET tokens on behalf of the avatar.

  • Contract: TARGET

  • Function: approve(address,uint256)

    ParameterConstraint
    spenderequal to AaveLendingPoolV3
    amount-

AaveLendingPoolV3 · borrow

Receive TARGET and variableDebtToken tokens.

  • Contract: AaveLendingPoolV3

  • Function: borrow(address,uint256,uint256,uint16,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    interestRateMode-
    referralCode-
    onBehalfOfequal to AVATAR

AaveLendingPoolV3 · repay

Repay borrowed TARGET tokens.

  • Contract: AaveLendingPoolV3

  • Function: repay(address,uint256,uint256,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    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)

    ParameterConstraint
    delegateeequal to WrappedTokenGatewayV3
    amount-

WrappedTokenGatewayV3 · borrowETH

Receive ETH and variableDebtWETH tokens.

  • Contract: WrappedTokenGatewayV3

  • Function: borrowETH(address,uint256,uint256,uint16)

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    amount-
    interestRateMode-
    referralCode-

WrappedTokenGatewayV3 · repayETH

Repay borrowed ETH.

  • Contract: WrappedTokenGatewayV3

  • Function: repayETH(address,uint256,uint256,address) Ξ allow sending ETH

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    amount-
    rateMode-
    onBehalfOfequal to AVATAR