From 212e656ce313f319781a28002527755e1837d347 Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Fri, 17 May 2024 23:44:49 +0800 Subject: [PATCH] add comment --- pyth_observer/dispatch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyth_observer/dispatch.py b/pyth_observer/dispatch.py index 5513187..002a7cd 100644 --- a/pyth_observer/dispatch.py +++ b/pyth_observer/dispatch.py @@ -165,6 +165,7 @@ def check_publisher(self, state: PublisherState) -> List[Check]: offline_check_passed = True check_state = check.state() distance = check_state.latest_block_slot - check_state.slot + # If the offline check passed, check if the abandoned slot distance is exceeded only if the market is open if ( check.market_open() and distance > check.abandoned_slot_distance()