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
Wrapinto
Wraps native ETH into WETH on the current chain.
Supplyto
Supplies an asset to an Aave market, minting aTokens to the wallet.
Getdatain
Reads an address's overall position in an Aave market: collateral, debt, borrow capacity, and health factor.
Calculateof
Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
Borrowfrom
Borrows an asset from an Aave market against collateral you have supplied.
Getamountreceivedfortoin
Reads the amount a Uniswap V3 pool would pay right now for a swap.
Calculateof
Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
Swapforatleast
Swaps one token for another through the solver over indexed liquidity.
Supplyto
Supplies an asset to an Aave market, minting aTokens to the wallet.
Getdatain
Reads an address's overall position in an Aave market: collateral, debt, borrow capacity, and health factor.