From 72279281843c8794f66c8d260772d7c6967e4eea Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Thu, 21 Mar 2024 13:56:01 -0700 Subject: [PATCH] undefined guard fill record id --- src/publishers/tradesPublisher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/publishers/tradesPublisher.ts b/src/publishers/tradesPublisher.ts index 35e2bfc..b36fc56 100644 --- a/src/publishers/tradesPublisher.ts +++ b/src/publishers/tradesPublisher.ts @@ -167,7 +167,7 @@ const main = async () => { oraclePrice: convertToNumber(fill.oraclePrice, PRICE_PRECISION), txSig: fill.txSig, slot: fill.slot, - fillRecordId: fill.fillRecordId.toNumber(), + fillRecordId: fill.fillRecordId?.toNumber(), action: 'fill', actionExplanation: getVariant(fill.actionExplanation), referrerReward: convertToNumber(