if clause corrected

This commit is contained in:
Nicolás Sánchez 2025-10-11 10:09:19 -03:00
parent c1ad535302
commit 23d09487d8
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class earner:
earning_delta = target_earning_amount - Decimal(self.earning_balance) 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: if earning_delta>Decimal(self.step_size) and time.time()-self.last_subscription_time>self.time_between_subscriptions:
self.subscribe(earning_delta) self.subscribe(earning_delta)
if earning_delta<-Decimal(self.step_size) and time.time()-self.last_redemption_time>self.time_between_redemptions: elif earning_delta<-Decimal(self.step_size) and time.time()-self.last_redemption_time>self.time_between_redemptions:
self.redeem(-earning_delta) self.redeem(-earning_delta)
#print(f"{str(self.connector)} - Difference: {earning_delta}") #print(f"{str(self.connector)} - Difference: {earning_delta}")
else: else: