Skip to content

refactor(wallet): keep native DERO out of the contract-token list#20

Merged
DHEBP merged 1 commit into
devfrom
fix/dero-not-a-token
Jun 17, 2026
Merged

refactor(wallet): keep native DERO out of the contract-token list#20
DHEBP merged 1 commit into
devfrom
fix/dero-not-a-token

Conversation

@DHEBP

@DHEBP DHEBP commented Jun 17, 2026

Copy link
Copy Markdown
Owner

What

The token portfolio now lists DERO-native contract assets only. Native
DERO — the base coin — no longer appears as a row in the token list; its
balance and send/receive live on the Dashboard.

Why

Listing native DERO alongside contract tokens made "send DERO" and "send
a token" the same gesture, and routed native sends through the
token-transfer path (reserved for non-zero SCIDs). Separating the base
coin from contract assets removes that ambiguity.

Changes

  • GetTrackedTokens no longer injects the native-DERO entry.
  • GetTokenPortfolio (XSWD path) skips the zero SCID, for consistency.
  • TokenPortfolio.svelte drops the now-dead native handling — sort
    hoist, native render branch, !token.native action gates, native row
    CSS — and shows a clearer empty state for wallets holding no contract
    tokens.

Verification

  • go build ./..., go vet, and npm run build all pass.
  • Confirmed live in wails dev: the Tokens screen shows only contract
    tokens (no DERO row), row actions/balance render correctly, and the
    Dashboard DERO balance is unaffected.

The token portfolio is for DERO-native contract assets. Native DERO is
the base coin — its balance and send/receive live on the Dashboard — so
it no longer appears as a row in the token list.

Both token-list sources stop emitting the native entry: GetTrackedTokens
no longer injects it, and GetTokenPortfolio (XSWD path) skips the zero
SCID. TokenPortfolio.svelte drops the now-dead native handling (sort
hoist, render branch, action-button gates) and shows a clearer empty
state for wallets holding no contract tokens.
@DHEBP DHEBP merged commit 3fdb1ea into dev Jun 17, 2026
2 checks passed
@DHEBP DHEBP deleted the fix/dero-not-a-token branch June 17, 2026 13:10
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.

1 participant