Skip to content

Commit 748947b

Browse files
committed
chore: older gaun data
1 parent 7c0d775 commit 748947b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/gauntlet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ def fetch_borrow_metrics_from_gauntlet(protocol, market_key, vault_risk_level) -
232232
total_borrow = cards[1]["value"]["amount"]
233233
last_updated = cards[0]["lastUpdated"]
234234

235-
if last_updated < get_timestamp_before(hours=12):
236-
alerts.append(f"🚨 Market {market_key} is not updated for 12 hours. Last updated at {last_updated}")
235+
old_data_threshold = 24
236+
if last_updated < get_timestamp_before(hours=old_data_threshold):
237+
alerts.append(f"🚨 Market {market_key} is not updated for {old_data_threshold} hours. Last updated at {last_updated}")
237238
return alerts
238239

239240
charts = charts["charts"]

0 commit comments

Comments
 (0)