From 667c4a25e1a1087ac30067b41f658d72b070f2f6 Mon Sep 17 00:00:00 2001 From: HungLV Date: Thu, 4 Jul 2024 14:02:48 +0700 Subject: [PATCH] fix: fill event accept erc20 --- packages/indexer/src/sync/events/handlers/zora.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/indexer/src/sync/events/handlers/zora.ts b/packages/indexer/src/sync/events/handlers/zora.ts index a39f5967a4..4355a127f5 100644 --- a/packages/indexer/src/sync/events/handlers/zora.ts +++ b/packages/indexer/src/sync/events/handlers/zora.ts @@ -423,10 +423,10 @@ export const handleEvents = async (events: EnhancedEvent[], onChainData: OnChain askPrice, baseEventParams.timestamp ); - if (!prices.nativePrice) { - // We must always have the native price - break; - } + // if (!prices.nativePrice) { + // // We must always have the native price + // break; + // } onChainData.fillEventsOnChain.push({ orderKind, @@ -435,7 +435,7 @@ export const handleEvents = async (events: EnhancedEvent[], onChainData: OnChain orderSide: "buy", maker, taker, - price: prices.nativePrice, + price: askPrice, currencyPrice: askPrice, usdPrice: prices.usdPrice, contract: tokenContract, @@ -453,7 +453,7 @@ export const handleEvents = async (events: EnhancedEvent[], onChainData: OnChain contract: tokenContract, tokenId, amount: "1", - price: prices.nativePrice, + price: askPrice, timestamp: baseEventParams.timestamp, maker, taker,