Skip to content

fix: always link V2 fills to their market by tokenId - #13

Merged
moose-code merged 1 commit into
moose-code:mainfrom
enviodev:fix/v2-market-attribution
Jul 14, 2026
Merged

fix: always link V2 fills to their market by tokenId#13
moose-code merged 1 commit into
moose-code:mainfrom
enviodev:fix/v2-market-attribution

Conversation

@moose-code

Copy link
Copy Markdown
Owner

V2Market.id IS the tokenId, so set market_id unconditionally instead of leaving fills permanently unattributed when the Gamma metadata fetch fails or returns null — the join resolves once metadata lands via a later fill of the same token. Mirrors enviodev/polymarket-v2-indexer.

V2Market.id IS the tokenId, so set market_id unconditionally instead of
leaving fills permanently unattributed when the Gamma metadata fetch
fails or returns null — the join resolves once metadata lands via a
later fill of the same token. Mirrors enviodev/polymarket-v2-indexer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@moose-code
moose-code merged commit c287da4 into moose-code:main Jul 14, 2026
1 check failed
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