From 06ab7ef6724192c22731b0c349f3dbcc2ca73285 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Mon, 22 Jan 2024 15:46:32 -0800 Subject: [PATCH] parseInt --- src/dlob-subscriber/DLOBSubscriberIO.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index 88e7bb3..4cf1d96 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -144,7 +144,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { if ( Math.abs(slot - l2Formatted['marketSlot']) > SLOT_DIFF_KILLSWITCH_THRESHOLD || - Math.abs(slot - l2Formatted['oracleData']['slot']) > + Math.abs(slot - parseInt(l2Formatted['oracleData']['slot'])) > SLOT_DIFF_KILLSWITCH_THRESHOLD ) { console.log(`Killing process due to slot diffs: