Removed 0 earning balance conditional

This commit is contained in:
Nicolás Sánchez 2025-10-11 09:58:25 -03:00
parent 2a01477a5e
commit c1ad535302
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ keys/api_credentials.db
*.pyo
credentials.py
some_tests.py
tests.py

View File

@ -247,8 +247,8 @@ class earner:
if self.earning_balance is None:
print(f"{str(self.connector).upper()} - There was an error fetching earning balance")
else:
if float(self.earning_balance)!=0:
earning_delta = target_earning_amount - Decimal(self.earning_balance)
#if float(self.earning_balance)!=0:
earning_delta = target_earning_amount - Decimal(self.earning_balance)
if earning_delta>Decimal(self.step_size) and time.time()-self.last_subscription_time>self.time_between_subscriptions:
self.subscribe(earning_delta)
if earning_delta<-Decimal(self.step_size) and time.time()-self.last_redemption_time>self.time_between_redemptions:

View File

@ -483,7 +483,7 @@ signal.signal(signal.SIGTERM, shutdown_handler)
if __name__=="__main__":
version = "2025.08.19"
version = "2025.10.11"
start_time = time.time()
with open("config.json") as f: