

Acts onchain
Provides both tokens to an Aerodrome stable or volatile pool and receives its LP token. The pool's stable flag is read, the router is approved for both tokens, and addLiquidity takes both sides at the pool's reserve ratio with the min floors, leaving the surplus side untaken and returning the amounts taken and the LP minted. Reach for it to enter a pool, coiling the LP out into a gauge stake or a stored record, with floors set from the reserves so the ratio cannot move against you.
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 WETH USDC Aerodrome LP



1·Get amount out
Reading the Aerodrome WETH/USDC volatile pool, this step asks what 0.0105 WETH would currently convert to in USDC, producing a live quote.
2·Multiply then divide
Taking that quoted USDC figure, this step multiplies by 995 and divides by 1000 rounding down, trimming it to 99.5 percent to set a slippage floor.
3·Swap tokens
Swapping 0.0105 ETH for USDC through the solver, this step requires at least the trimmed amount from the prior math as the minimum output.
4·Wrap
Wrapping 0.01 ETH into WETH gives the plug the WETH leg it will supply to the pool.
5·Quote add liquidity
Quoting the Aerodrome pool again, this step reads how much WETH and USDC adding the wrapped WETH and swapped USDC would settle at right now.
6·Multiply then divide
Against the quoted WETH leg, this step multiplies by 995 and divides by 1000 rounding down to a 99.5 percent floor.
7·Multiply then divide
Likewise for the quoted USDC leg, this step applies the same 995 over 1000 reduction rounded down.
8·Add liquidity
Providing the quoted WETH and USDC amounts to the volatile pool, this step accepts the LP position only if both settled legs clear the two floors computed above.
More on Aerodrome · 40








































On other protocols · 3