From a34dd1716eeabbf63fa56348f9d406a91fb2470c Mon Sep 17 00:00:00 2001 From: Jack Waller Date: Fri, 2 May 2025 12:35:58 +1000 Subject: [PATCH] chore: fix null check on batch call also --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 494e957..536580d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -693,8 +693,8 @@ const main = async (): Promise => { slot: oracleData.slot.toNumber(), confidence: oracleData.confidence.toNumber(), hasSufficientNumberOfDataPoints: true, - twap: oracleData.twap.toNumber(), - twapConfidence: oracleData.twapConfidence.toNumber(), + twap: oracleData.twap?.toNumber(), + twapConfidence: oracleData.twapConfidence?.toNumber(), }, ts: Date.now(), marketSlot: dlobProvider.getSlot(),