Skip to content

chore(jobs): drop volume accumulator from on-chain coin stats - #1003

Merged
rickyrombo merged 1 commit into
mainfrom
mjp-drop-volume-accumulator
Aug 3, 2026
Merged

chore(jobs): drop volume accumulator from on-chain coin stats#1003
rickyrombo merged 1 commit into
mainfrom
mjp-drop-volume-accumulator

Conversation

@rickyrombo

Copy link
Copy Markdown
Contributor

What

Removes the volume accumulator from CoinStatsOnchainJob:

  • deletes updateVolumeAccumulator / readVolumeAccumulator and stops writing total_volume / total_volume_usd in the artist_coin_stats_onchain upsert
  • drops the now-unused artist_coin_volume_accumulator table (migration 0234) and its seed base row

Why

The all-time volume stat this fed is being removed from the product (AudiusProject/apps#14542). It's an unverifiable figure — no other aggregator (DexScreener, GeckoTerminal, Jupiter) even reports an all-time cumulative volume for these coins, the source value can't be reproduced on-chain, and for multi-market coins it aggregates pools we don't index. Rather than maintain data we won't display, we drop it.

Price, holders, market cap, liquidity, and 24h price change are unaffected. The artist_coin_stats_onchain.total_volume* columns remain (mirrored from artist_coin_stats) but are simply left NULL.

Test

go test ./jobs/ ./database/ pass; schema loads with the table removed; build/vet clean. (Schema dump edited to drop only the accumulator table — the unrelated churn from make test-schema reflects pre-existing drift on main and is left out.)

🤖 Generated with Claude Code

The all-time volume stat was removed from the product (unverifiable vendor
figure; no other aggregator even reports it), so CoinStatsOnchainJob no longer
needs to compute it. Removes the accumulator update/read logic and the volume
columns from the artist_coin_stats_onchain upsert, drops the now-unused
artist_coin_volume_accumulator table, and removes its seed base row.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rickyrombo
rickyrombo merged commit 29d2fd0 into main Aug 3, 2026
2 checks passed
@rickyrombo
rickyrombo deleted the mjp-drop-volume-accumulator branch August 3, 2026 22:39
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