Skip to content

Add --exclude-unpriced flag to sim evm balances (GRO-229)#53

Merged
ivpusic merged 1 commit intomainfrom
gro-229-exclude-unpriced-sim-balances
Apr 20, 2026
Merged

Add --exclude-unpriced flag to sim evm balances (GRO-229)#53
ivpusic merged 1 commit intomainfrom
gro-229-exclude-unpriced-sim-balances

Conversation

@ivpusic
Copy link
Copy Markdown
Member

@ivpusic ivpusic commented Apr 20, 2026

Summary

  • New boolean flag --exclude-unpriced on dune sim evm balances (and, via shared addBalanceFlags, on dune sim evm stablecoins)
  • Defaults to true, so tokens without a USD price are filtered out by default
  • Pass --exclude-unpriced=false to include unpriced tokens
  • Value is always forwarded as the exclude_unpriced query param so the CLI default stays pinned regardless of Sim API defaults

Test plan

  • go build ./... clean
  • go test ./cmd/sim/evm/... green
  • Live Sim API, limit=50, chain 1, vitalik.eth: default returns 11 priced entries / 0 unpriced; --exclude-unpriced=false returns 42 entries (11 priced + 31 unpriced like ANON, LYRA, iPhone15 with no price_usd field)
  • sim evm stablecoins --help shows the new flag

Default is true so unpriced tokens are filtered out by default; pass
--exclude-unpriced=false to include them. Flag is shared with
'sim evm stablecoins' via addBalanceFlags.
@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 20, 2026

PR Summary

Low Risk
Small, CLI-only change that adds a new query parameter and tweaks default filtering behavior; no auth, writes, or sensitive data handling.

Overview
Adds a new --exclude-unpriced boolean flag to dune sim evm balances (and the shared stablecoins command flags) to control whether tokens lacking a USD price are returned.

The CLI now defaults to excluding unpriced tokens and always forwards the explicit exclude_unpriced=true|false query parameter to the Sim API to keep behavior consistent regardless of server defaults.

Reviewed by Cursor Bugbot for commit 02424c8. Configure here.

@ivpusic ivpusic merged commit a616e5d into main Apr 20, 2026
3 checks passed
@ivpusic ivpusic deleted the gro-229-exclude-unpriced-sim-balances branch April 20, 2026 08:11
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