ETH to wstETH Swap With Slippage Guard

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 0.01 ETH for wstETH through the solver, using Lido's live wstETH to stETH exchange rate to set a minimum output. It asks the caller for 0.01 ETH to swap. It fires when run, enforcing a slippage floor of 99.5 percent of the rate-implied wstETH amount and reverting below it. Computing the floor by hand or against a stale Lido rate risks accepting a worse fill or a failed transaction.

Actions · 5

  • Get exchange rate
    Get exchange rate of
    Reads how much stETH one whole wstETH is worth 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.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8