fix: Check that domains are closed before including their value
All checks were successful
Build Docker / Build Image (push) Successful in 29s
All checks were successful
Build Docker / Build Image (push) Successful in 29s
This commit is contained in:
parent
6e382b0e6e
commit
c28874bb1c
@ -134,6 +134,7 @@ def getBalance(account: str):
|
|||||||
domains = getDomains(account)
|
domains = getDomains(account)
|
||||||
domainValue = 0
|
domainValue = 0
|
||||||
for domain in domains:
|
for domain in domains:
|
||||||
|
if domain['state'] == "CLOSED":
|
||||||
domainValue += domain['value']
|
domainValue += domain['value']
|
||||||
total = total - (domainValue/1000000)
|
total = total - (domainValue/1000000)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user