

Acts onchain
Stakes an Aero pool's LP token in the pool's gauge to earn AERO emissions. The pool's gauge is read from the Aero factory registry when the plug runs; the socket approves it and deposits for the wallet, so the stake and its emissions accrue to the wallet's own address. A gauge whose factory sets an early-withdrawal penalty refuses deposits made for another account and reverts. Reach for it right after adding liquidity, coiling the LP minted into the amount so the position earns within the same plug.
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 to Staked WETH USDC Aero LP



1·Get amount out
Reads the current amount of USDC the Aero WETH/USDC Volatile 0.30% pool would pay for swapping 0.0105 WETH, used as the reference quote for pricing the swap.
2·Multiply then divide
Takes that quote and multiplies by 995 then divides by 1000 rounding down, trimming it to a floor that serves as the minimum output tolerance.
3·Swap tokens
Swaps 0.0105 ETH for USDC through the solver, requiring at least the floored amount so the trade reverts if the price has drifted too far.
4·Wrap
Wraps 0.01 ETH into WETH on the current chain, producing the WETH leg for the liquidity deposit.
5·Quote add liquidity
Quotes what adding the wrapped WETH and the received USDC to the same Aero WETH/USDC pool would settle at right now, returning the paired amounts.
6·Multiply then divide
Applies the same 995 over 1000 reduction rounding down to the quoted WETH amount, setting a minimum for one side of the deposit.
7·Multiply then divide
Does the same reduction on the quoted USDC amount, setting a minimum for the other side of the deposit.
8·Add liquidity
Deposits the quoted WETH and USDC into the Aero pool, requiring at least the two floored minimums, and receives the pool's LP token.
9·Stake
Stakes the received LP token in the pool's gauge to earn AERO emissions.
More on Aero · 10











On other protocols · 8