fix: an address holding only unpriced tokens reports its total as $0.00 #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
getAddressValueUsd()returns0, notnull, when the ETH price is known but a held token's is not. Only the top 25 tokens are priced (src/shared/prices.js:21), so an address holding only unpriced ERC-20s rendersTotal: $0.00.It is wrong in the direction that matters: the user is told their address is worth nothing when it may hold a great deal. On the address-removal confirmation added by #240 it lands directly beneath "This address holds a balance.", which reads as a contradiction — though the per-token line does still show the real quantity.
Pre-existing and shared: the same helper behaves identically on Home and AddressDetail. Found by the independent review of #240, which reused the helper exactly as its own round-1 review had asked, so it was not blocked there.
Implementation requirements
Definition of done
$0.00.TODO.mdupdated in the same commit.make checkpasses.