From b49ccfd8400eda3b00791a4e28d178ce6065bd17 Mon Sep 17 00:00:00 2001 From: Soil King <157099073+soilking@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:21:25 -0700 Subject: [PATCH] Adjust basin daily update time --- bots/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/util.py b/bots/util.py index bb91ef2..845f0af 100644 --- a/bots/util.py +++ b/bots/util.py @@ -516,7 +516,9 @@ def __init__(self, message_function, prod=False, dry_run=False): self.well_client = WellClient(BEAN_ETH_WELL_ADDR) self.update_period = 60 * 60 * 24 self.update_ref_time = int( - 0.5 * 60 * 60 + # 9:05am PST/12:05pm EST. Subgraph takes daily snapshot in tandem with the sunrise, + # for now recommend waiting 5 extra minutes for that reason + 16 * 60 * 60 + 5*60 ) # 15 * 60 * 60 # timestamp to check period against (11:00 EST) # updated_secs_ago = time.time() - (time.time() % self.update_period) - self.update_ref_time self.last_update = time.time() # arbitrary init