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,7 +134,8 @@ def getBalance(account: str):
|
|||||||
domains = getDomains(account)
|
domains = getDomains(account)
|
||||||
domainValue = 0
|
domainValue = 0
|
||||||
for domain in domains:
|
for domain in domains:
|
||||||
domainValue += domain['value']
|
if domain['state'] == "CLOSED":
|
||||||
|
domainValue += domain['value']
|
||||||
total = total - (domainValue/1000000)
|
total = total - (domainValue/1000000)
|
||||||
|
|
||||||
# Only keep 2 decimal places
|
# Only keep 2 decimal places
|
||||||
|
Loading…
Reference in New Issue
Block a user