Skip to content

Commit 88ca98c

Browse files
r4topunkclaude
andcommitted
fix(feed): skip zero-amount AuctionSettled events
No-bid auction settlements (common on low-activity DAO days) emit AuctionSettledEvent with amount "0" + zero-address owner. formatETH renders "0.00000" as "0.00e+0 ETH" and the winner resolves to "Unknown", producing misleading "Unknown won #N for 0.00e+0 ETH" feed cards that appear to be spam from another DAO. Old feed-events.ts never emitted settled events at all (every auction rendered as AuctionCreated). Filtering zero-amount settlements keeps real settlements with actual bids visible while removing the noisy no-bid cards. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0ca7c45 commit 88ca98c

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)