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(),