

Acts onchain
Deposits a pair of tokens into an Aero pool and receives its LP token in the socket. The socket approves the Metarouter for both amounts and executes its add-liquidity command against the factory that deployed the pool: the Metarouter trims the larger side to the pool's live reserve ratio, reverts if either side it commits falls under its floor, mints the LP to the socket, and returns what it did not commit. The action returns the LP minted. Reach for it to provide liquidity to a pair, coiling the LP into stake in the same plug to start earning AERO.
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 · 4