Skip to content

TOKEN_API_NO_TOTAL_SUPPLY: total_supply is null for nearly all tokens #519

Description

@chillsauce

Detail. total_supply returns null for USDC, WETH, GRT, stETH, PEPE, ARKM, and approximately 95% of the 51 tokens tested. Only circulating_supply is reliably populated.

Workaround applied. Removed FDV (fully diluted valuation) computation from the UI entirely. The “Diluted market cap” stat tile that was originally planned was dropped.

Impact. FDV is one of the four headline metrics on every CoinGecko, DefiLlama, and CoinMarketCap token page. Inability to compute it is a noticeable feature gap relative to incumbents.

Proposed change. Backfill total_supply from a one-time totalSupply() contract read at indexing time. Cache indefinitely; refresh on mint or burn events. The indexer already has RPC access for this.

Effort estimate. Small. One contract read per token, results immutable except on supply change events.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions