Skip to content

feat(api): tvl tie-break, 1h candles from 5m buckets, candle backfill…#465

Merged
Mimah97 merged 2 commits into
Vatix-Protocol:mainfrom
Mathews-25:feat/389-390-391-392-pools-candles-search
Jun 30, 2026
Merged

feat(api): tvl tie-break, 1h candles from 5m buckets, candle backfill…#465
Mimah97 merged 2 commits into
Vatix-Protocol:mainfrom
Mathews-25:feat/389-390-391-392-pools-candles-search

Conversation

@Mathews-25

Copy link
Copy Markdown

…, token FTS

  • pools: deterministic tie-break by id when tvl/volume/apr are equal
  • candles: aggregate 1h candles from existing 5m buckets instead of raw swaps
  • candles: backfill missing candles for every interval since the first swap, run once on worker startup before the cron schedule
  • search: full-text search on token symbol via to_tsvector/websearch_to_tsquery, backed by a new GIN index

Closes #389,
closes #390,
closes #391,
closes #392

Summary

Related issue

  • Closes #

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Chore / refactor

Checklist

  • CI passes (lint + tests + build)
  • Self-reviewed the diff
  • Added or updated tests where relevant
  • Docs updated if needed

Mathews-25 and others added 2 commits June 29, 2026 02:24
…, token FTS

- pools: deterministic tie-break by id when tvl/volume/apr are equal
- candles: aggregate 1h candles from existing 5m buckets instead of raw swaps
- candles: backfill missing candles for every interval since the first swap,
  run once on worker startup before the cron schedule
- search: full-text search on token symbol via to_tsvector/websearch_to_tsquery,
  backed by a new GIN index

Closes Vatix-Protocol#389, Vatix-Protocol#390, Vatix-Protocol#391, Vatix-Protocol#392

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Mimah97 Mimah97 merged commit 7cd0eee into Vatix-Protocol:main Jun 30, 2026
0 of 5 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.

Full-text search on token symbol Backfill candles from historical swaps Aggregate 1h candles from 5m buckets Pool list sort by TVL descending

2 participants