GitXplorerGitXplorer
l

distributeBalanceForRocketpool

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
c20c6c58a48688b815548ea1c641c69db10ae045

Update

llieberscott committed a year ago
Verified
50aec19a2f894f572c18b799e835e5b2426c413c

Update

llieberscott committed a year ago
Verified
60be058b3275125a81b241cabbf563cbef7c8aac

Update README.md

llieberscott committed a year ago
Verified
cc1430c6c592c0379c22c3382f577fc23c2ca16c

Update

llieberscott committed a year ago
Verified
6bd3ded010347da7faef02636b4ea1c0315fd8b9

Update README.md

llieberscott committed a year ago
Verified
130e251c11222b7d89e4863070c23e39025b16df

Update README.md

llieberscott committed a year ago

README

The README file for this repository.

distributeBalanceForRocketpool

A layman's guide on how to distribute a Rocketpool minipool balance after withdrawing your Minipool

This guide is meant for someone who needs to use Etherscan to distribute the balance of their minipool back to their withdrawal address. This guide assumes you have already performed a voluntary exit of your validators.

Here are the steps: ✅ Create an Etherscan account if you don't already have one ✅ Set up a custom ABI for the Rocketpool delegate contract ✅ Call the delegate contract's distributeBalance function from your minipool addresses

Step 0: Create an Etherscan account.

Go to Etherscan.io and create an account. Make sure you are logged in.

Step 1: Determine which delegate contract your minipool is connected to. Add the ABI of the Delegate contract

From the Rocketpool docs:

The minipool delegate contract is a special contract that contains the bulk of the logic required by minipools - things like fairly distributing the balance between you and the pool stakers, for example. Unlike minipools, where each minipool is a unique contract, the delegate is a single contract that many minipools can "forward" requests to.

To see which delegate contract you need to use, go to your minipool address on Etherscan, click Contract, "Read Contract", then getDelegate
Screen Shot 2023-10-10 at 1 50 18 PM

If you need to find your minipool address, follow the directions below.

a. Keep in mind, you have three main addresses for the purpose of tracking down your minipool address: Your originating wallet addresss, your node address, and your minipool address.
b. Go to Etherscan.io and enter the address for your original wallet address from which you originally sent your 8ETH or 16ETH.
c. Find the transaction from which you sent your 8TH or 16ETH (or more, if setting up multiple minipools) to the node. Click the receiving address. This is your node address.

Finding Node 1
d. Click the receiving address. This is your node address.
e. Find the transaction where your node received the 8ETH or 16ETH from your original wallet. Right afterward, should be a "Stake" transaction. The receiver of this transaction is your minipool.

Finding Node 2

Step 2. Go to your minipool address on Etherscan, click Contract, click "more options", then "Is this a proxy?"

Contract 2

Step 3. Complete the verification that the contract is a proxy contract, and click save.

Proxy Contract 1

Step 4. Go back to the minipool address, click on the Contract tab, refresh the page, and "Write as proxy" should be visible.

Distribute Balance 1

Step 5. Write distributeBalance and enter false as the parameter

Step 6. Withdraw RPL stake

NOTE: You can only withdraw your RPL stake by calling the withdrawRPL function with your node address. It will be withdrawn to your withdrawal address (if set, otherwise to node address).

Also, you must wait at least 28 days from your last stake (or re-stake) or the transaction will fail

  1. Sign in to Metamask or another Web3 wallet using your node credentials.
  2. Go to the most recent RPL deployer contract on Etherscan. As of this writing, it is v3.
  3. Go to the Contract tab, Read Contract, then getNodeRPLStake. Input your validator address. Screen Shot 2023-10-10 at 2 08 12 PM
  4. Copy the result. It will look like a very big number. This is your RPL stake as stored on the blockchain.
  5. Go to the Write Contract tab. Connect your node address to Etherscan using a Web3 wallet.
  6. Click withdrawRPL, enter the number you just copied and write the transaction Screen Shot 2023-10-10 at 2 15 04 PM

Thanks to @P-tches in the Rocketpool Discord for helping provide the basic steps.