Skip to content

fix(indexer): stop writing fabricated pool snapshots - #18

Open
rahulatrkm wants to merge 1 commit into
YieldAnchor:mainfrom
rahulatrkm:fix/remove-fabricated-pool-snapshots
Open

rahulatrkm wants to merge 1 commit into
YieldAnchor:mainfrom
rahulatrkm:fix/remove-fabricated-pool-snapshots

Conversation

@rahulatrkm

Copy link
Copy Markdown
Contributor

Closes #5

Decision

Choose removal: delete the random recordScaffoldSnapshot generator and its polling call. No replacement TVL or APY is invented from unbacked simulated accounting. Event projection and checkpoint handling remain unchanged.

The README makes the consequence explicit: new databases receive no pool measurements from this watcher until a real state reader is implemented. Existing API/dashboard fallbacks and historical rows remain unchanged; this PR does not claim the UI is now a live financial projection, nor does it delete database records.

Verification

A regression executes initial and repeated polls with fake timers. Before the fix, it observed two pool_snapshots writes. After the fix, it observes no fabricated writes while checkpoint progress is preserved.

  • Full indexer suite: 36 passed.
  • Focused watcher suite: 6 passed.
  • Indexer build/typecheck, changed-file ESLint/Prettier, and git diff --check: passed.

No live database or RPC was used. This branch is independent of the other watcher PRs, so test additions may need reconciliation when merging in sequence.

Prepared and tested by GitHub Copilot on behalf of rahulatrkm. Independent human review is not claimed. No bounty or payment claim is attached.

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.

fix: indexer writes fabricated TVL and APY into pool_snapshots

1 participant