From 87937ec0ac9175c55508c4c2df505b0573d25694 Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Thu, 6 Apr 2023 17:03:42 +0200 Subject: [PATCH] ui: Fix blind balance scientific notation --- basicswap/ui/page_wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicswap/ui/page_wallet.py b/basicswap/ui/page_wallet.py index 127998d..e1ec861 100644 --- a/basicswap/ui/page_wallet.py +++ b/basicswap/ui/page_wallet.py @@ -51,7 +51,7 @@ def format_wallet_data(swap_client, ci, w): if ci.coin_type() == Coins.PART: wf['stealth_address'] = w.get('stealth_address', '?') - wf['blind_balance'] = w.get('blind_balance', '?') + wf['blind_balance'] = "{:.8f}".format(float(w['blind_balance'])) if 'blind_unconfirmed' in w and float(w['blind_unconfirmed']) > 0.0: wf['blind_unconfirmed'] = w['blind_unconfirmed'] wf['anon_balance'] = w.get('anon_balance', '?')