From bd9d2da54656a03470eafe700c75fb6db307e90c Mon Sep 17 00:00:00 2001 From: Georgi Grozdanov Date: Thu, 8 Feb 2024 14:40:48 +0200 Subject: [PATCH] Fix max stake share for rockepool nodes with 8 ETH --- src/app/tab-validators/tab-validators.page.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/tab-validators/tab-validators.page.ts b/src/app/tab-validators/tab-validators.page.ts index f2bdb523..969e4743 100644 --- a/src/app/tab-validators/tab-validators.page.ts +++ b/src/app/tab-validators/tab-validators.page.ts @@ -534,7 +534,9 @@ export class Tab2Page { for (const val of validatorSubArray) { let temp = new BigNumber(val.data.effectivebalance) if (val.rocketpool) { - temp = temp.dividedBy(2) + const nodeBalance = new BigNumber(val.rocketpool.node_deposit_balance).dividedBy(1e9); + const partRatio = nodeBalance.dividedBy(temp); + temp = temp.multipliedBy(partRatio); } sum = sum.plus(temp) }