mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-07-26 22:53:37 +00:00
The dust filter hid any token with fiatBalance < $0.01. On chains with no fiat price oracle the Client Gateway returns fiatConversion "0" (and thus fiatBalance "0") for every token — Lux/Zoo/Pars C-Chains — so the filter wrongly hid the entire native balance. safe.lux.network showed the Lux Foundation treasury (0xE54cAf7E, ~994.7B LUX) as an empty "1 small balance" instead of its real holdings. A token is only dust if we can price it. Keep tokens whose price is unknown (fiatConversion <= 0) and the native token; only hide genuinely-priced dust. Decomplected: the two duplicate filterDustTokens copies (useVisibleBalances, useHiddenTokenCounts) are now one price-aware helper in utils/balances.ts, so the assets table and the "N small balances" indicator can never disagree. Co-authored-by: Hanzo Dev <dev@hanzo.ai>