Skip to content

Commit

Permalink
fix: fill event accept erc20
Browse files Browse the repository at this point in the history
  • Loading branch information
HungLV46 committed Jul 8, 2024
1 parent d0b2be9 commit 667c4a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/indexer/src/sync/events/handlers/zora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 667c4a2

Please sign in to comment.