Skip to content

Commit

Permalink
Merge pull request #272 from grozdanovgg/bugfix/rocketpool-8-eth-stak…
Browse files Browse the repository at this point in the history
…e-share-support

Fix max stake share for rockepool nodes with 8 ETH
  • Loading branch information
manuelsc authored Mar 11, 2024
2 parents 10b519b + bd9d2da commit 53ce803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/tab-validators/tab-validators.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 53ce803

Please sign in to comment.