Skip to content

Commit

Permalink
Merge pull request #15 from BeanstalkFarms/sk/feat/basin-daily
Browse files Browse the repository at this point in the history
Modified basin daily snapshot to trigger at 9 am PT/12pm EST
  • Loading branch information
soilking authored Apr 26, 2024
2 parents 87ea9ef + b49ccfd commit 0104f15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bots/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0104f15

Please sign in to comment.