diff --git a/cmd/gondx/main.go b/cmd/gondx/main.go index 50ff387..1c9c9ae 100644 --- a/cmd/gondx/main.go +++ b/cmd/gondx/main.go @@ -332,9 +332,8 @@ func main() { func dbPriceUpdateLoop(ctx context.Context, bc *bclient.Client, db *db.Database) { ticker := time.NewTicker(time.Second * 60) // update every 1m defer ticker.Stop() - // this will tick less frequently as its an extremely expensive RPC to calculate - // a single price update likely requires 100 -> 150 RPC calls - tvlTicker := time.NewTicker(time.Hour) + // update TVL every 15 minutes + tvlTicker := time.NewTicker(time.Minute * 15) defer tvlTicker.Stop() // update the tvl price before looping to insert some data