1
0

util: small clean-up for format_satoshis

This commit is contained in:
SomberNight
2020-06-22 02:46:16 +02:00
parent f91674992f
commit b6db201570
6 changed files with 46 additions and 11 deletions

View File

@@ -614,7 +614,13 @@ class SimpleConfig(Logger):
pass
def format_amount(self, x, is_diff=False, whitespaces=False):
return format_satoshis(x, self.num_zeros, self.decimal_point, is_diff=is_diff, whitespaces=whitespaces)
return format_satoshis(
x,
num_zeros=self.num_zeros,
decimal_point=self.decimal_point,
is_diff=is_diff,
whitespaces=whitespaces,
)
def format_amount_and_units(self, amount):
return self.format_amount(amount) + ' '+ self.get_base_unit()