From a9f2befdaabedd4b97db45b2ef195cf13800db4f Mon Sep 17 00:00:00 2001 From: Jian Xiao Date: Tue, 23 Jul 2024 23:55:20 +0000 Subject: [PATCH] Fix the operator stake share basis point calculation --- node/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/metrics.go b/node/metrics.go index 1b72e14069..a5a18f8465 100644 --- a/node/metrics.go +++ b/node/metrics.go @@ -245,7 +245,7 @@ func (g *Metrics) collectOnchainMetrics() { for opId, opInfo := range operators { opStake := new(big.Float).SetInt(opInfo.Stake) share, _ := new(big.Float).Quo( - new(big.Float).Mul(opStake, big.NewFloat(100000)), + new(big.Float).Mul(opStake, big.NewFloat(10000)), totalStake).Float64() operatorStakeShares = append(operatorStakeShares, &OperatorStakeShare{operatorId: opId, stakeShare: share}) }