Skip to content

Commit

Permalink
bring back tvl tick to 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Mar 2, 2021
1 parent d27ee39 commit 80f51c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gondx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ func main() {
func dbPriceUpdateLoop(ctx context.Context, bc *bclient.Client, db *db.Database, logger *zap.Logger, cfg *config.Config, mc *multicall.Multicall) {
ticker := time.NewTicker(time.Second * 60) // update every 1m
defer ticker.Stop()
// update TVL every 20m
tvlTicker := time.NewTicker(time.Minute * 20)
// update TVL every 15m
tvlTicker := time.NewTicker(time.Minute * 15)
defer tvlTicker.Stop()
// do an initial update
processUpdates(bc, db, logger, mc, cfg.Indices)
Expand Down

0 comments on commit 80f51c1

Please sign in to comment.