ETH Looped Leverage on Aave Base

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug builds a one-loop leveraged WETH position on the Aave market at 0xe20fcbdbffc4dd138ce8b2e6fbb6cb49777ad64d on Base. It asks the caller to run the composed transaction that wraps 0.02 ETH into WETH. On execution it supplies WETH, borrows USDC at 50 of 100 percent of borrow capacity, swaps through the Uniswap V3 pool at a 9950 of 10000 basis points minimum, and resupplies. Running the borrow and swap by hand or on a stale quote risks exceeding capacity or receiving less WETH than priced.

Actions · 11

  • Wrap
    Wrap into
    Wraps native ETH into WETH on the current chain.
  • Supply
    Supply to
    Supplies an asset to an Aave market, minting aTokens to the wallet.
  • Get account data
    Get data in
    Reads an address's overall position in an Aave market: collateral, debt, borrow capacity, and health factor.
  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • Borrow
    Borrow from
    Borrows an asset from an Aave market against collateral you have supplied.
  • Get quote
    Get amount received for to in
    Reads the amount a Uniswap V3 pool would pay right now for a swap.
  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.
  • Supply
    Supply to
    Supplies an asset to an Aave market, minting aTokens to the wallet.
  • Get account data
    Get data in
    Reads an address's overall position in an Aave market: collateral, debt, borrow capacity, and health factor.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8