fix: Finally get around to having an accurate total HNS count
All checks were successful
Build Docker / Build Image (push) Successful in 23s
All checks were successful
Build Docker / Build Image (push) Successful in 23s
This commit is contained in:
parent
dc240bb1a7
commit
360ca7bfe9
@ -131,6 +131,12 @@ def getBalance(account: str):
|
|||||||
total = total / 1000000
|
total = total / 1000000
|
||||||
available = available / 1000000
|
available = available / 1000000
|
||||||
|
|
||||||
|
domains = getDomains(account)
|
||||||
|
domainValue = 0
|
||||||
|
for domain in domains:
|
||||||
|
domainValue += domain['value']
|
||||||
|
total = total - (domainValue/1000000)
|
||||||
|
|
||||||
# Only keep 2 decimal places
|
# Only keep 2 decimal places
|
||||||
total = round(total, 2)
|
total = round(total, 2)
|
||||||
available = round(available, 2)
|
available = round(available, 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user