From 3d5e316f75c3472ab108a1e663b00a64b8d32f81 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 8 May 2021 01:12:47 -0700 Subject: [PATCH] update balances stmt --- admin/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/__main__.py b/admin/__main__.py index df25f94..f10230b 100644 --- a/admin/__main__.py +++ b/admin/__main__.py @@ -31,7 +31,9 @@ def get_balances(): accounts = wallet.accounts() for acc in accounts: balances = wallet.balances(account=acc[0]) - click.echo(f'wallet {acc[0]} ({acc[1][0:12]}) - {float(balances[0])} locked, {float(balances[1])} unlocked') + unlocked = balances[1] + locked = balances[0] - balances[1] + click.echo(f'wallet {acc[0]} ({acc[1][0:12]}) - {float(locked)} locked, {float(unlocked)} unlocked') @click.command() def generate_bot_help():