見出し画像

ロケットプールノードステーキング準備編、RPLステーキング、ミニプールの作成

ボンドサイズの選択

ロケットプールノードステーキングでは8ETHか16ETHをデポジットし、32ETHに満たない部分をリキッドステーキング利用者に貸し出すことでステーキングをおこなう。
これらは人が介在することなくすべて自動で行われる。
まず最初にボンドサイズとよばれるデポジットサイズを8ETHか16ETH、どちらかにするか決めなければならない。
また、貸し出すETHサイズ(8ETHの場合は24ETH、16ETHの場合は16ETH)の10%金額分のRPLトークンを保有しなければいけないため2.4ETHか1.6ETH分のRPLの準備が必要となる。

ボンドサイズによる報酬の違い

細かな計算式は省略するが、公式情報では8ETHのほうが18%多くETHを獲得できる事になっている。しかしRPLトークンの必要量が多くなってしまう。
最初は16ETHで構築し、RPLが用意できた時点で8ETHに分割変更できるようなので今回は16ETHで先ずは構築し、状況を見て8ETHに分割する方法を取ることにした。

RPLの用意

RPLは国内では未承認トークンであるため国内の取引所では取り扱いがないため、海外の取引所を利用するかDEXを利用するかのどちらかである。
私は利用してるハードウェアウォレットのLedger Liveから1inchのDEXを利用し、余裕を持って1.8ETH分のRPLを用意した。

ミニプールの準備(RPLステーキング)

自身で用意した16ETHと流動性ステーキング参加者から借りた(貸し出した)16ETHでステーキングに必要な32ETHを形成することをミニプールと呼びます。ミニプールを作る前に先ずは担保となるRPLをステーキングする必要があります。
用意したRPLをステーキングするにはノードウォレットに送金してもよいのですが、出金先に指定しているアドレスを使うのが手数料や安全性の面からもベストです(出金先はハードウェアウォレットです)
ステーキングするためにはアドレスをホワイトリストに登録する必要がありますが、出金先アドレスは自動的にホワイトリストに登録されているので登録作業は省略できます、もし必要なら以下のコマンドでできるようです(未検証)

$ rocketpool node add-address-to-stake-rpl-whitelist address-or-ens

RPLをステーキングするにはウェブサイトからステーキングするのが便利です。

引き出しアドレスの設定ではLedger nano s plusをMetamask経由で使うのは面倒くさいと --forceオプションを付けて設定しましたが、Ledgerからは設定できないようなので諦めて設定します。
設定するといってもLedger のEtereumアプリからBlind signingをenabledにするだけです。

Metamaskで利用するための設定

RPLステーキング登録は2段階あり、まずはRPLを利用する量の決定、続いてステーキング開始です。
下の画像の Node Addressにはノードウォレット、Connect Walletを押してMetamaskと接続しLedgerを使って署名します。

RPLステーキング

完了するとテープで祝ってくれます(スクショを撮るのを忘れました)

ステーキング確認

RPLステーキングが完了を確認します。

$ rocketpool node status
途中省略
=== RPL Stake ===
NOTE: The following figures take *any pending bond reductions* into account.

The node has a total stake of 285.463276 RPL and an effective stake of 0.000000 RPL.

The node has enough RPL staked to make 0 more 8-ETH minipools (or 1 more 16-ETH minipools).

RPLステーキング量と現在のRPLでいくつのミニプールを作成できるか確認できます。私の場合、16ETHのミニプールが1つ作れるようです。

スムージングプール加入

スムージングプールに加入すると収入が平滑化(スムージング)され運に左右されないようなので、脱退も出来るのでとりあえず入っておく。

$ rocketpool node join-smoothing-pool

You are about to opt into the Smoothing Pool.
Your fee recipient will be changed to the Smoothing Pool contract.
All priority fees and MEV you earn via proposals will be shared equally with other members of the Smoothing Pool.

If you desire, you can opt back out after one full rewards interval has passed.

+============== Suggested Gas Prices ==============+
| Avg Wait Time |  Max Fee  |    Total Gas Cost    |
| 15 Seconds    | 9 gwei    | 0.0008 to 0.0012 ETH |
| 1 Minute      | 8 gwei    | 0.0006 to 0.0009 ETH |
| 3 Minutes     | 8 gwei    | 0.0006 to 0.0009 ETH |
| >10 Minutes   | 8 gwei    | 0.0006 to 0.0009 ETH |
+==================================================+

These prices include a maximum priority fee of 2.00 gwei.
Please enter your max fee (including the priority fee) or leave blank for the default of 8 gwei:


Using a max fee of 8.00 gwei and a priority fee of 2.00 gwei.
NOTE: This process will restart your node's validator client.
You may miss an attestation if you are currently scheduled to produce one.

Are you sure you want to join the Smoothing Pool? [y/n]
y

Joining the Smoothing Pool...
Transaction has been submitted with hash トランザクションハッシュ.
You may follow its progress by visiting:
https://etherscan.io/tx/トランザクションハッシュ

Waiting for the transaction to be included in a block... you may wait here for it, or press CTRL+C to exit and return to the terminal.

Successfully joined the Smoothing Pool.

Ethereumのデポジット

16ETHをノードウォレットに送金します。
額が大きいので慎重に事を運びます。
ミニプールを作成する際に発行される流動性ステーキングトークンrETHが発行されるのですが、その際に価格にプレミアムが付きそこを自動的に裁定取引してくれるツールrocketarbがあるのですが、これは次回研究するとして今回はミニプール作成を先行します。

$ rocketpool node deposit

Your eth2 client is on the correct network.

NOTE: by creating a new minipool, your node will automatically claim and distribute any balance you have in your fee distributor contract. If you don't want to claim your balance at this time, you should not create a new minipool.
Would you like to continue? [y/n]
y

Please choose an amount of ETH to deposit:
1: 8 ETH
2: 16 ETH
2

Your minipool will use the current fixed commission rate of 14.00%.
You currently have 0.00 ETH in your credit balance plus ETH staked on your behalf.
Would you like to continue? [y/n]
y

Your consensus client is synced, you may safely create a minipool.
+============== Suggested Gas Prices ==============+
| Avg Wait Time |  Max Fee  |    Total Gas Cost    |
| 15 Seconds    | 6 gwei    | 0.0049 to 0.0074 ETH |
| 1 Minute      | 6 gwei    | 0.0042 to 0.0064 ETH |
| 3 Minutes     | 6 gwei    | 0.0048 to 0.0073 ETH |
| >10 Minutes   | 6 gwei    | 0.0042 to 0.0064 ETH |
+==================================================+

These prices include a maximum priority fee of 2.00 gwei.
Please enter your max fee (including the priority fee) or leave blank for the default of 6 gwei:


Using a max fee of 6.00 gwei and a priority fee of 2.00 gwei.
You are about to deposit 16.000000 ETH to create a minipool with a minimum possible commission rate of 14.000000%.
ARE YOU SURE YOU WANT TO DO THIS? Exiting this minipool and retrieving your capital cannot be done until your minipool has been *active* on the Beacon Chain for 256 epochs (approx. 27 hours).
 [y/n]
y

Creating minipool...
Transaction has been submitted with hash 今回のトランザクションハッシュ.
You may follow its progress by visiting:
https://etherscan.io/tx/今回のトランザクションハッシュ

Waiting for the transaction to be included in a block... you may wait here for it, or press CTRL+C to exit and return to the terminal.

The node deposit of 16.000000 ETH was made successfully!
Your new minipool's address is: ミニプールのアドレス
The validator pubkey is: バリデーターパブリックキー

Your minipool is now in Initialized status.
Once the remaining ETH has been assigned to your minipool from the staking pool, it will move to Prelaunch status.
After that, it will move to Staking status once 12h0m0s have passed.
You can watch its progress using `rocketpool service logs node`.

ミニプールの状態確認

$ rocketpool minipool status

1 Prelaunch minipool(s):

起動してすぐ確認したところPrelaunchになっているようです。
これはすでに16ETHが補充された状態で、今後12時間経過後検証され正式にバリデーターとしてステーキングが開始されます。
正式稼働時にはPrelaunchがStakingに変わります、ここまで来るとビーコンチェーンエクスプローラー等で確認できるようになります。


この記事が気に入ったらサポートをしてみませんか?