Swap 0.005 ETH for weETH at the Ether.fi Rate

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 0.005 ETH for weETH through the ether.fi solver at the protocol's current exchange rate. It asks the caller for 0.005 ETH to spend on the swap. It fires whenever run, reading the live weETH rate, converting the ETH amount, and applying a 0.5 percent floor as the minimum received. Done by hand or against a stale rate, the computed minimum could mismatch real liquidity and cause the swap to revert or settle on worse terms.

Actions · 4

  • Get exchange rate
    Get exchange rate of
    Reads how much eETH one whole weETH 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.

More like this on Base

Stake on Base · 9 plugs

Related plugs · 8