Skip to content

Commit

Permalink
Merge pull request #142 from Layr-Labs/jb/fix-bug
Browse files Browse the repository at this point in the history
Fix bug in find-stale-pods
  • Loading branch information
jbrower95 authored Aug 27, 2024
2 parents 2ffb4e7 + b5413a1 commit 7c6c4e5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cli/core/findStalePods.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ func PodManagerContracts() map[uint64]string {
}
}

func weiToGwei(val uint64) phase0.Gwei {
return phase0.Gwei(new(big.Int).Div(new(big.Int).SetUint64(val), big.NewInt(params.GWei)).Uint64())
}

type Cache struct {
PodOwnerShares map[string]PodOwnerShare
}
Expand All @@ -37,8 +33,10 @@ func keys[A comparable, B any](coll map[A]B) []A {
return []A{}
}
out := make([]A, len(coll))
for key, _ := range coll {
out[len(out)] = key
i := 0
for key := range coll {
out[i] = key
i++
}
return out
}
Expand Down

0 comments on commit 7c6c4e5

Please sign in to comment.