Skip to content

feat: usd price fetching, other minor changes#889

Merged
owen-eth merged 1 commit intomainfrom
usd-volume-indexing
Feb 13, 2026
Merged

feat: usd price fetching, other minor changes#889
owen-eth merged 1 commit intomainfrom
usd-volume-indexing

Conversation

@owen-eth
Copy link
Contributor

Describe your changes

-Add eth_price_usd, swap_vol_usd, total_vol_usd columns to indexer pipeline
-fetchETHPriceUSD function with daily in-memory cache — one Covalent call per calendar day
-USD values computed as swap_vol_eth * eth_price_usd and total_vol_eth * eth_price_usd

-Fix tombstone logic for event-backed candidates — use l_block_timestamp from tx_view with 15-min threshold instead of skipping forever
-Unify tombstone age threshold to 15 minutes for both rpc and event-backed candidates

-Add SolverCallExecuted swap detection via topic0 + decoded event name

Issue ticket number and link

Fixes # (issue)

Checklist before requesting a review

  • I have added tests that prove my fix is effective or that my feature works
  • I have made corresponding changes to the documentation

@owen-eth owen-eth changed the title usd price fetching, other minor changes feat: usd price fetching, other minor changes Feb 12, 2026
@owen-eth owen-eth requested a review from kant777 February 13, 2026 16:29
@owen-eth owen-eth merged commit 94abdad into main Feb 13, 2026
7 of 8 checks passed
@owen-eth owen-eth deleted the usd-volume-indexing branch February 13, 2026 16:52
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.

2 participants