We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9759071 commit caaa4e4Copy full SHA for caaa4e4
1 file changed
shared/services/state/network-state.go
@@ -534,7 +534,10 @@ func (s *NetworkState) GetMegapoolEligibleBorrowedEth(node *rpstate.NativeNodeDe
534
return big.NewInt(0)
535
}
536
537
- megapool := s.MegapoolDetails[node.MegapoolAddress]
+ megapool, exists := s.MegapoolDetails[node.MegapoolAddress]
538
+ if !exists {
539
+ return big.NewInt(0)
540
+ }
541
eligibleBorrowedEth := big.NewInt(0).Set(megapool.UserCapital)
542
543
// Iterate over the validators
0 commit comments