Skip to content

Commit

Permalink
SERVICES-1085 fix default startTime and missing auctionType
Browse files Browse the repository at this point in the history
  • Loading branch information
johnykes authored and danielailie committed Nov 8, 2023
1 parent 7f4a1d8 commit 61be3cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class AuctionStartedSummary extends ReindexGenericSummary {
const address = event.data.eventData?.address ?? tx.receiver;
const topics = this.getTopics(event);

if (!topics || (!topics.price && !topics.minBid)) {
if (!topics || (!topics.price && !topics.minBid) || !topics.auctionType) {
return;
}

Expand All @@ -60,7 +60,7 @@ export class AuctionStartedSummary extends ReindexGenericSummary {
minBid: topics.minBid ?? topics.price,
maxBid: topics.maxBid ?? '0',
minBidDiff: minBidDiff,
startTime: topics.startTime,
startTime: topics.startTime ?? event.timestamp,
endTime: topics.endTime ?? topics.deadline ?? 0,
paymentToken: topics.paymentToken,
paymentNonce: topics.paymentNonce ?? topics.paymentTokenNonce ?? 0,
Expand Down

0 comments on commit 61be3cc

Please sign in to comment.