Swap 0.005 ETH for rETH at the Rocket Pool Rate

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 0.005 ETH for rETH at the Rocket Pool exchange rate through the solver. It asks the caller for 0.005 ETH to spend on the token at 0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c. It fires on execution, reading the live rate and requiring the return to meet a floor set at 995 of 1000 of the computed rETH amount. Running it manually on a stale rate can size the minimum wrong and fill at a worse price or revert.

Actions · 4

  • Get exchange rate
    Get exchange rate of
    Reads how much native ETH one whole rETH 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