From 4acc4b03c09df33855c6d97467476f563cc3508c Mon Sep 17 00:00:00 2001 From: wadealexc Date: Wed, 28 Aug 2024 23:12:14 +0000 Subject: [PATCH] fix: flipped beaconETHDeltaGwei calc --- cli/core/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/core/status.go b/cli/core/status.go index 5e68db8..1f00f7f 100644 --- a/cli/core/status.go +++ b/cli/core/status.go @@ -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