Skip to content

Commit

Permalink
Fix the operator stake share basis point calculation (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Aug 6, 2024
1 parent 1377d37 commit dd1c604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
Expand Down

0 comments on commit dd1c604

Please sign in to comment.