Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Dec 18, 2024
1 parent 6ded515 commit 5b12211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/core/findStalePods.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func ComputeBalanceDeviationSync(ctx context.Context, eth *ethclient.Client, sta
PanicOnError("failed to load pod owner", err)

activeShares, err := delegationManager.GetWithdrawableShares(nil, podOwner, []common.Address{
common.HexToAddress(NATIVE_ETH_STRATEGY),
BeaconStrategy(),
})
PanicOnError("failed to load owner shares", err)

Expand All @@ -200,7 +200,7 @@ func ComputeBalanceDeviationSync(ctx context.Context, eth *ethclient.Client, sta

for i, withdrawal := range withdrawalInfo.Withdrawals {
for j, strategy := range withdrawal.Strategies {
if strategy.Cmp(common.HexToAddress(NATIVE_ETH_STRATEGY)) == 0 {
if strategy.Cmp(BeaconStrategy()) == 0 {
sharesPendingWithdrawal = new(big.Int).Add(sharesPendingWithdrawal, withdrawalInfo.Shares[i][j])
}
}
Expand Down

0 comments on commit 5b12211

Please sign in to comment.