update balances stmt

master
lza_menace 4 years ago
parent 7b98ee33a3
commit 3d5e316f75

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

Loading…
Cancel
Save