Get exchange rate

Get exchange rate on ether.fi

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Reads how much eETH one whole weETH is worth right now. weETH's getRate returns the current unwrap rate at 18 decimals, which rises as staking rewards rebase into eETH. Reach for it to value a weETH balance in eETH or ETH terms, to compare against a DEX quote before unwrapping, or to measure yield between runs by comparing against a stored rate.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Swap 0.005 ETH for weETH at the Ether.fi Rate

etherfi
math
plug
4actions
  1. 1·Get exchange rate

    Reading the current ether.fi rate for weETH to learn how much eETH one whole weETH is worth right now.

  2. 2·Multiply then divide

    Taking 0.005 and multiplying by 1, then dividing by that fetched rate and rounding down, converting the ETH amount into a weETH figure.

  3. 3·Multiply then divide

    From that converted weETH figure, multiplying by 995 and dividing by 1000 rounded down, which trims the amount to allow a slippage margin.

  4. 4·Swap tokens

    Finally swapping 0.005 ETH for at least that trimmed weETH amount through the solver, using the prior result as the minimum received.

Get exchange rate of
Calculate times divided by rounded
Calculate times divided by rounded
Swap for at least

More plugs on Base

Stake on Base · 9 plugs

More on ether.fi · 8

On other protocols · 6