parseInt
This commit is contained in:
@@ -144,7 +144,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
|
|||||||
if (
|
if (
|
||||||
Math.abs(slot - l2Formatted['marketSlot']) >
|
Math.abs(slot - l2Formatted['marketSlot']) >
|
||||||
SLOT_DIFF_KILLSWITCH_THRESHOLD ||
|
SLOT_DIFF_KILLSWITCH_THRESHOLD ||
|
||||||
Math.abs(slot - l2Formatted['oracleData']['slot']) >
|
Math.abs(slot - parseInt(l2Formatted['oracleData']['slot'])) >
|
||||||
SLOT_DIFF_KILLSWITCH_THRESHOLD
|
SLOT_DIFF_KILLSWITCH_THRESHOLD
|
||||||
) {
|
) {
|
||||||
console.log(`Killing process due to slot diffs:
|
console.log(`Killing process due to slot diffs:
|
||||||
|
|||||||
Reference in New Issue
Block a user