func (s *State) GetEffectiveBalance(index uint32, c *config.Config) uint64 {
	if s.ValidatorBalances[index] <= c.MaxDeposit {
		return s.ValidatorBalances[index]
	}
	return c.MaxDeposit
}
// GetEffectiveBalance gets the effective balance for a validator
GetEffectiveBalance gets the effective balance for a validator
// GetEffectiveBalance gets the effective balance for a validator
func (s *State) GetEffectiveBalance(index uint32, c *config.Config) uint64 {
	if s.ValidatorBalances[index] <= c.MaxDeposit {
		return s.ValidatorBalances[index]
	}
	return c.MaxDeposit
}
func ( s * State ) GetEffectiveBalance ( index uint32 , c * config . Config ) uint64 { if s . ValidatorBalances [ index ] <= c . MaxDeposit { return s . ValidatorBalances [ index ] } return c . MaxDeposit }
GetEffectiveBalance gets the effective balance for a validator
GetEffectiveBalance gets the effective balance for a validator