


Acts onchain
Borrows an asset from an Aave market against collateral you have supplied. The pool lends the amount at the variable rate to the socket, which hands it to the wallet, opening or growing the wallet's variable debt position; it only succeeds while your health factor stays above one afterward. The wallet delegates borrowing power for the amount to its socket in the same confirmation. Reach for it after a supply in the same transaction to build leverage, to fund a swap or deposit elsewhere with borrowed capital, or inside a flash loan block to convert a temporary loan into lasting debt. Pair it with account data so a predicate holds the resulting health factor above your floor.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
ETH Looped Leverage on Aave Base



1·Wrap
Wrapping 0.02 ETH at 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee into WETH at 0x4200000000000000000000000000000000000006 converts the native holding into the ERC20 form Aave accepts.
2·Supply
Supplying the wrapped amount from slot 0.0 as WETH to the Aave Base market at 0xe20fcbdbffc4dd138ce8b2e6fbb6cb49777ad64d mints aTokens and establishes collateral.
3·Get account data
Reading Your Wallet position in that same market returns collateral, debt, borrow capacity, and health factor for sizing the next step.
4·Calculate proportional value
Taking 50 of 100 percent of the borrow capacity in slot 2.1.2 halves available headroom to leave a buffer below the limit.
5·Borrow
Borrowing that computed amount from slot 3.0 as USDC at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 draws debt against the supplied WETH.
6·Get quote
Quoting the same borrowed USDC amount into WETH through the Uniswap V3 pool at 0xd0b53d9277642d899df5c87a3966a349a798f224 reads the current expected output.
7·Calculate proportional value
Applying 9950 of 10000 basis points to the quoted output in slot 5.0.0 sets a minimum received after a half percent slippage allowance.
8·Swap tokens
Swapping the borrowed USDC from slot 3.0 for at least the slippage-adjusted WETH minimum routes the trade through the solver.
9·Supply
Supplying the received WETH from slot 7.4 back to the Aave Base market adds the swapped proceeds as further collateral, completing the loop.
10·Get account data
Rereading Your Wallet position in the market captures the updated collateral, debt, and health factor after the second supply.
11·Bubble
Bubbling the value in slot 9.1.5 surfaces that final position metric as the output of this plug.
Borrow on Base · 7 plugs
Posts · 8
More on Aave · 25


























On other protocols · 10