fixed refresh and some minor bug about dust amounts and empty wallet
This commit is contained in:
8
util.py
8
util.py
@@ -84,9 +84,11 @@ class Util:
|
||||
if Util.is_perc(amount):
|
||||
return amount
|
||||
else:
|
||||
num = 8 - decimal_point
|
||||
basestr = "{{:0{}.{}f}}".format(num, num)
|
||||
return "{:08.8f}".format(float(amount) / pow(10, decimal_point))
|
||||
basestr = "{{:0.{}f}}".format(decimal_point)
|
||||
try:
|
||||
return basestr.format(float(amount) / pow(10, decimal_point))
|
||||
except:
|
||||
return str(amount)
|
||||
|
||||
def is_perc(value):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user