Swap 20 USDC for ETH

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 20 USDC for ETH through the solver over indexed liquidity. It requires 20 USDC from the caller. It fires whenever run, first reading a live quote from the Uniswap V3 WETH/USDC 0.05% pool and setting the minimum received at 99 percent of that quote. Done by hand or against a stale quote, the swap could fill below the intended floor or revert on a slippage bound that no longer matches the market.

Actions · 3

  • Get quote
    Get amount received for to in
    Reads the amount a Uniswap V3 pool would pay right now for a swap.
  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.

Related plugs · 5