From de8556290041e6983d230f4cc8c94933e0abe606 Mon Sep 17 00:00:00 2001 From: remoterami <142154971+remoterami@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:25:27 +0100 Subject: [PATCH] fix: scaled efficiency value --- backend/pkg/api/data_access/vdb_summary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkg/api/data_access/vdb_summary.go b/backend/pkg/api/data_access/vdb_summary.go index 4e911f018..3260517f5 100644 --- a/backend/pkg/api/data_access/vdb_summary.go +++ b/backend/pkg/api/data_access/vdb_summary.go @@ -832,7 +832,7 @@ func (d *DataAccessService) GetValidatorDashboardGroupSummary(ctx context.Contex if totalIdealAttestationRewards > 0 { attestationEfficiency.Float64 = decimal.NewFromInt(totalAttestationRewards).Div(decimal.NewFromInt(totalIdealAttestationRewards)).InexactFloat64() attestationEfficiency.Valid = true - ret.AttestationEfficiency = max(attestationEfficiency.Float64, 0) + ret.AttestationEfficiency = max(attestationEfficiency.Float64*100, 0) } if totalBlocksScheduled > 0 { proposerEfficiency.Float64 = float64(totalBlocksProposed) / float64(totalBlocksScheduled)