Skip to content

fix: stop bundling unrelated origins that share a payment address#973

Closed
onchainlu wants to merge 1 commit into
mainfrom
debug-stablemerch-plus1
Closed

fix: stop bundling unrelated origins that share a payment address#973
onchainlu wants to merge 1 commit into
mainfrom
debug-stablemerch-plus1

Conversation

@onchainlu

Copy link
Copy Markdown
Contributor

Summary

  • The bazaar grouping logic used origins[0].id as the key when aggregating stats, so when two unrelated origins shared a payment address they were merged into one row — inflating the primary origin's stats and showing a spurious "+N" badge (e.g. StableMerch +1)
  • Each origin now gets its own entry in the featured list, keyed by its own ID
  • Fixed total_count to use distinct origin IDs instead of address count (old value was also wrong) so pagination computes correctly

Test plan

  • Verify StableMerch no longer shows "+1" on the featured services list
  • Verify StableMerch's featured list stats align with its detail page stats
  • Verify origins that share a payment address each appear as separate rows
  • Verify pagination still works when there are more origins than page size

The bazaar grouping used origins[0].id as the key, so when two origins
shared a payment address they were merged into one row — inflating stats
and showing a spurious "+N" badge (e.g. StableMerch +1). Each origin now
gets its own entry, and total_count uses distinct origin IDs instead of
address count so pagination stays correct.
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
x402scan Ready Ready Preview, Comment Jun 10, 2026 2:41pm

Request Review

@onchainlu onchainlu closed this Jun 10, 2026
@onchainlu onchainlu deleted the debug-stablemerch-plus1 branch June 10, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant