fix: Finally get around to having an accurate total HNS count
All checks were successful
Build Docker / Build Image (push) Successful in 23s

This commit is contained in:
Nathan Woodburn 2024-02-12 21:18:05 +11:00
parent dc240bb1a7
commit 360ca7bfe9
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -131,6 +131,12 @@ def getBalance(account: str):
total = total / 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
total = round(total, 2)
available = round(available, 2)