From 60c6d47d1e354cc5c590bcfc32218943aa92e972 Mon Sep 17 00:00:00 2001 From: Stefan Benker <114066135+D13ce@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:12:24 +0200 Subject: [PATCH] (NOBIDS) Show correct max effective balance for deposited valis (#2626) --- templates/validator/overview.html | 38 +++++++++++++++--------------- templates/validator/validator.html | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/validator/overview.html b/templates/validator/overview.html index a28f5b4a84..6d0c0be026 100644 --- a/templates/validator/overview.html +++ b/templates/validator/overview.html @@ -78,30 +78,30 @@ {{ end }} {{ define "validatorOverviewDeposited" }} -
-
-
-
- - {{ if eq .InclusionDelay 0 }} - A deposit has been made, and your validator will be voted into the activation queue once the deposited amount sums up to {{ config.Chain.ClConfig.MaxEffectiveBalance }} {{ config.Frontend.ClCurrency }}. - {{ else }} - - The last deposit to the Deposit contract was made {{ if gt .Deposits.LastEth1DepositTs 0 }}{{ end }}, it will take around 16-24 hours until your deposit is processed by the beacon chain. This validator will be eligible for activation once the deposited amount sums up to {{ config.Chain.ClConfig.MaxEffectiveBalance }} {{ config.Frontend.ClCurrency }}. + {{ with .Data }} +
+
+
+
+ + {{ if eq .InclusionDelay 0 }} + A deposit has been made, and your validator will be voted into the activation queue once the deposited amount sums up to {{ formatClCurrency config.Chain.ClConfig.MaxEffectiveBalance $.Rates.ClCurrency 0 true false false }}. + {{ else }} + The last deposit to the Deposit contract was made {{ if gt .Deposits.LastEth1DepositTs 0 }}{{ end }}, it will take around 16-24 hours until your deposit is processed by the beacon chain. This validator will be eligible for activation once the deposited amount sums up to {{ formatClCurrency config.Chain.ClConfig.MaxEffectiveBalance $.Rates.ClCurrency 0 true false false }}. + {{ end }}
Join our Discord server for support, questions and suggestions. - {{ end }} -
+ +
-
- + + {{ end }} {{ end }} {{ define "validatorOverviewPending" }} diff --git a/templates/validator/validator.html b/templates/validator/validator.html index 4698719c99..9d046d29ef 100644 --- a/templates/validator/validator.html +++ b/templates/validator/validator.html @@ -94,7 +94,7 @@
{{ if $deposited }} - {{ template "validatorOverviewDeposited" . }} + {{ template "validatorOverviewDeposited" $ }} {{ end }} {{ if $pending }} {{ template "validatorOverviewPending" . }}