Skip to content

Commit

Permalink
(NOBIDS) fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Sep 30, 2023
1 parent 584a8ff commit 7121f4f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"math/big"
"sort"
"sync"
"sync/atomic"
"time"

itypes "github.com/gobitfly/eth-rewards/types"
Expand All @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7121f4f

Please sign in to comment.