Skip to content

Add kBTC and USDC price feeds for Ink blockchain#9221

Merged
jeff-dude merged 3 commits intoduneanalytics:mainfrom
yelsanity:add-ink-kbtc-usdc-prices
Feb 20, 2026
Merged

Add kBTC and USDC price feeds for Ink blockchain#9221
jeff-dude merged 3 commits intoduneanalytics:mainfrom
yelsanity:add-ink-kbtc-usdc-prices

Conversation

@yelsanity
Copy link
Contributor

Summary

Adds price feed mappings for two tokens on the Ink blockchain:

  • kBTC (0x73e0c0d45e048d25fc26fa3159b0aa04bfa4db98)
  • USDC (0x2d270e6886d130d724215a266106e6832161eaed)

Problem

These tokens are actively used on Nado DEX but currently return NULL for amount_usd in the tokens_ink.transfers table because price feeds are missing.

Solution

  • Map kBTC to wbtc-wrapped-bitcoin token_id for BTC pricing
  • Map USDC to usdc-usd-coin token_id for USD pricing

Testing

  • Verified token addresses on Ink blockchain explorer
  • Confirmed decimal places (kBTC: 8, USDC: 6)
  • Contracts are active with significant trading volume on Nado DEX

Impact

This will enable USD value calculations for these tokens in all Dune queries using the tokens_ink schema.

@cursor
Copy link

cursor bot commented Jan 15, 2026

PR Summary

Adds missing price feed mappings for Ink tokens to support USD/BTC valuations.

  • Update prices_ink_tokens.sql to include kBTC (mapped to wbtc-wrapped-bitcoin, addr 0x73e0c0d45e048d25fc26fa3159b0aa04bfa4db98, 8 decimals)
  • Add USDC (mapped to usdc-usd-coin, addr 0x2d270e6886d130d724215a266106e6832161eaed, 6 decimals)

Written by Cursor Bugbot for commit 11f61e9. Configure here.

@github-actions github-actions bot marked this pull request as draft January 15, 2026 09:02
@github-actions
Copy link

github-actions bot commented Jan 15, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions github-actions bot added WIP work in progress dbt: tokens covers the Tokens dbt subproject labels Jan 15, 2026
@yelsanity
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 15, 2026
git push origin add-ink-kbtc-usdc-prices
git status
'

- Change kBTC from wbtc-wrapped-bitcoin to btc-bitcoin to match Bitcoin pricing
- Change USDC token_id to usdc-usd-coin-ink to avoid duplicate with USDC.e
@yelsanity yelsanity marked this pull request as ready for review January 15, 2026 09:59
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Jan 15, 2026
@jeff-dude jeff-dude merged commit 011d9a9 into duneanalytics:main Feb 20, 2026
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dbt: tokens covers the Tokens dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants