


Acts onchain
Wraps native ETH into WETH on the current chain. The amount is sent by value to the chain's wrapped native contract, which mints the ERC-20 form one-to-one with no fee; the action reports received as the socket's WETH balance change. Reach for it before a step that takes only the ERC-20 form, such as a Uniswap V2 pair or a lending market that lists WETH rather than native ETH, and coil received into that step's amount so it spends the WETH the wrap minted.
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
Stake on Base · 9 plugs
Provide liquidity on Base · 6 plugs
Posts · 2
More on Ethereum Virtual Machine · 11












On other protocols · 4