Skip to content

Preserve fairminter LP credits with null envelope transaction hashes - #29

Merged
droplister merged 1 commit into
masterfrom
fix/fairminter-lp-credit-identity
Oct 4, 2026
Merged

droplister merged 1 commit into
masterfrom
fix/fairminter-lp-credit-identity

Conversation

@droplister

Copy link
Copy Markdown
Member

Fairminter pool creation emits an end-of-block LP credit with a null envelope transaction hash. The indexer passed that null into INSERT OR IGNORE, silently dropping both the history row and its balance-trigger effect. Resolve the originating hash from params.event and fail before checkpointing if an LP credit/debit cannot be identified.

The database audit found eight omitted locked LP credits. Pool reserves and all 2,505 pool matches agree with Core, but the missing supply affects holder fee analytics. The runbook documents the bounded evidence and a separate guarded historical repair; this PR does not automatically rewrite production history.

Validation: 113 compiled API tests, both D1 migration checks, three Worker tests, TypeScript and promise lint pass. New real-SQLite sync regressions cover a null-envelope credit before OPEN_POOL, a failed post-processing retry, reorg reversal, and stopping on a missing payload identity.

@droplister
droplister merged commit b6033cd into master Oct 4, 2026
2 checks passed
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