ETH to Staked WETH USDC Aero LP

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 0.0105 ETH into USDC, wraps 0.01 ETH into WETH, and deposits both into the Aerodrome WETH/USDC volatile 0.30 percent pool to mint an LP token. It requires the caller to supply roughly 0.0205 ETH total for the swap and wrap legs. It runs when executed, pricing the swap and the deposit against live Aerodrome quotes. Each leg carries a 99.5 percent floor, so running it against a stale quote risks reverts or receiving fewer tokens than expected.

Actions · 9

  • Get amount out
    Get amount received for to in
    Reads the amount an Aero pool would pay right now for a swap.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.
  • Wrap
    Wrap into
    Wraps native ETH into WETH on the current chain.
  • Quote add liquidity
    Quote adding and to
    Reads what adding liquidity to an Aero pool would settle at right now.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Add liquidity
    Provide and to for at least and
    Deposits a pair of tokens into an Aero pool and receives its LP token in the socket.
  • Stake
    Stake
    Stakes an Aero pool's LP token in the pool's gauge to earn AERO emissions.

Related plugs · 8