USDC to WETH on WOO Fi

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 100 USDC for WETH on WOOFi at the oracle price. It asks the caller for 100 USDC to spend. It queries the current WOOFi quote, sets a minimum at 99.5 percent of that amount, and executes the swap only when the output clears that floor. Running it by hand or against a stale quote risks accepting fewer WETH than the live price would yield or having the trade revert when the market moves.

Actions · 3

  • Query swap
    Get amount received for to
    Reads the amount WOOFi would pay right now for an exact input.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Swap
    Swap for at least
    Swaps an exact amount of one token for another at WOOFi's oracle price.

Related plugs · 4