Skip to content

Commit

Permalink
fix: flipped beaconETHDeltaGwei calc
Browse files Browse the repository at this point in the history
  • Loading branch information
wadealexc committed Aug 28, 2024
1 parent 2610d23 commit 4acc4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/core/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ func GetStatus(ctx context.Context, eigenpodAddress string, eth *ethclient.Clien
// Next, we need the change in the pod's beacon chain balances since the last
// checkpoint:
//
// beaconETHDeltaGwei = sumRestakedBalancesGwei - sumBeaconBalancesGwei
// beaconETHDeltaGwei = sumBeaconBalancesGwei - sumRestakedBalancesGwei
beaconETHDeltaGwei := new(big.Float).Sub(
new(big.Float).SetUint64(uint64(sumRestakedBalancesGwei)),
new(big.Float).SetUint64(uint64(sumBeaconBalancesGwei)),
new(big.Float).SetUint64(uint64(sumRestakedBalancesGwei)),
)

// Sum of these two deltas represents the change in shares after this checkpoint
Expand Down

0 comments on commit 4acc4b0

Please sign in to comment.