


Reads onchain state
Reads how much native ETH one whole rETH is worth right now. rETH's getExchangeRate returns the rate at 18 decimals, rising as the network's validators earn rewards. Reach for it to value an rETH balance in ETH, to compare against a DEX quote and decide between burning and swapping, 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 rETH at the Rocket Pool Rate



1·Get exchange rate
Reading the current rETH exchange rate from Rocket Pool at 0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c, which reports how much native ETH one whole rETH is worth right now.
2·Multiply then divide
Taking 0.005 times 1 and dividing by the rETH rate, rounding down, to convert the ETH amount into an expected rETH quantity.
3·Multiply then divide
Applying 995 divided by 1000 to that expected rETH quantity, rounding down, which sets a floor below the quoted amount as a slippage allowance.
4·Swap tokens
Swapping 0.005 ETH for at least that reduced rETH floor through the solver, so the trade only fills if it returns no less than the computed minimum.
Stake on Base · 9 plugs
Posts · 1
More on Rocket Pool · 6







On other protocols · 6