Skip to content

Commit 90ab499

Browse files
authored
Merge pull request #76 from r4topunk/fix/feed-skip-zero-settled
fix(feed): skip zero-amount AuctionSettled events
2 parents 0ca7c45 + 88ca98c commit 90ab499

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/services/feed-events.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,14 @@ function transformEvent(event: SubgraphFeedEvent): FeedEvent[] {
403403

404404
case "AuctionSettledEvent": {
405405
const e = event as SubgraphAuctionSettled;
406+
// Skip no-bid settlements (common on low-activity DAO days).
407+
// The subgraph emits `amount: "0"` + zero-address owner when an
408+
// auction ends with no bidder; surfacing those as "Auction Won"
409+
// cards renders "Unknown won for 0.00e+0 ETH" — noisy and
410+
// misleading. Old feed never emitted settled events at all, so
411+
// filtering preserves the less-spammy baseline while still
412+
// showing real settled auctions with actual winners.
413+
if (!e.amount || e.amount === "0") return [];
406414
return [
407415
{
408416
id: `auction-settled-${e.auction.id}`,

0 commit comments

Comments
 (0)