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(