Skip to content

Commit

Permalink
fix: scaled efficiency value
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Jan 16, 2025
1 parent 5c40cb5 commit de85562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de85562

Please sign in to comment.