Swap 20 USDC for ETH Within 1% of Chainlink

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 20 USDC for ETH through the solver while enforcing a minimum output tied to the Chainlink ETH/USD price. It reads that oracle price, converts the 20 USDC budget into an ETH amount, and takes 99 percent of it as the floor. The swap executes whenever the caller runs it and reverts if the fill falls more than one percent below the Chainlink quote. Running it manually or against a stale price risks accepting an ETH amount outside the intended one percent band.

Actions · 4

  • Get price
    Get price of in
    Reads the latest Chainlink price of a base asset in a quote asset, normalized to 18 decimals.
  • 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.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.

Related plugs · 8