GPT-5 finding
Duplicate and inconsistent balance formatting across components
lowmaintainabilityhigh
- desktop/renderer/src/components/wallet/WalletSidebarPanel.tsx:205-214
- desktop/renderer/src/components/wallet/WalletView.tsx:29-38
Two separate formatBalance implementations diverge (4 vs 6 decimals). This duplication risks inconsistent UX and future drift.
Recommendation
Consolidate formatting into a shared utility (e.g., utils/wallet.ts) used by both components. Define consistent rules and unit test them.