update balances stmt

This commit is contained in:
lza_menace 2021-05-08 01:12:47 -07:00
parent 7b98ee33a3
commit 3d5e316f75

View file

@ -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():