From 7121f4f52ca21fb74fbed2a45536a932033af93e Mon Sep 17 00:00:00 2001 From: peter <1674920+peterbitfly@users.noreply.github.com> Date: Sat, 30 Sep 2023 07:10:09 +0200 Subject: [PATCH] (NOBIDS) fix linter --- services/services.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/services/services.go b/services/services.go index 7814a8c74e..9173885a22 100644 --- a/services/services.go +++ b/services/services.go @@ -15,7 +15,6 @@ import ( "math/big" "sort" "sync" - "sync/atomic" "time" itypes "github.com/gobitfly/eth-rewards/types" @@ -28,9 +27,6 @@ import ( geth_rpc "github.com/ethereum/go-ethereum/rpc" ) -var eth1BlockDepositReached atomic.Value -var depositThresholdReached atomic.Value - var logger = logrus.New().WithField("module", "services") // Init will initialize the services @@ -703,14 +699,6 @@ func getIndexPageData() (*types.IndexPageData, error) { } } - threshold, err := db.GetDepositThresholdTime() - if err != nil { - logger.WithError(err).Error("error could not calculate threshold time") - } - if threshold == nil { - threshold = &deposit.BlockTs - } - data.DepositThreshold = float64(utils.Config.Chain.Config.MinGenesisActiveValidatorCount) * 32 data.DepositedTotal = float64(deposit.Total)