Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Schicke committed Oct 17, 2021
1 parent 3bd91ec commit 1f91b40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion B_Config.py.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import os

# SETUP
NETWORK = 'TESTNET' # TESTNET or MAINNET
mnemonic = os.environ.get('MNEMONIC', '')

# Replace the seed phrase with yours
mnemonic = os.environ.get('MNEMONIC', 'doorpost lankiness impurity cottage dust spectacle matador annuity obsessive swimwear coaster proclaim frosting radiance grandpa worrier undermost encourage fall lather fake phrase for real')

# Read me: When to claim, sell, unstake? - What is the right min_total_value?
# Check this link: https://docs.google.com/spreadsheets/d/1U9jd5rarvWwbeuGLzkuG7Hyx4B71Pkdrmoj894SGr3M
Expand Down
8 changes: 4 additions & 4 deletions C_Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import B_Config as config

# Other imports
from datetime import datetime, timedelta
from datetime import datetime, timedelta, date
from time import time

Transaction_class, Queries_class, Cooldown_class, Logger_class, Terra_class, Prettify_class, Notifications_class = Transaction(), Queries(), Cooldown(), Logger(), Terra, Prettify(), Notifications
Expand Down Expand Up @@ -59,7 +59,7 @@ def keep_safe():
action_dict = {'MIR' : 'none','SPEC' : 'none','ANC' : 'none', }

wallet_balance_before = Queries_class.get_wallet_balances()
default_logger.debug(f'Wallet_balance_before: {Prettify_class.dict_value_convert_dec_to_float(wallet_balance_before, False)}')
default_logger.debug(f'Wallet_balance_before: {Prettify_class.dict_value_convert_dec_to_float(wallet_balance_before, True)}')

# default_logger.debug(f'------------------------------------------\n'
# f'-------- WITHDRAW FROM LP SECTION --------\n'
Expand Down Expand Up @@ -940,8 +940,8 @@ def keep_safe():
status_update = Notifications_class.generate_status_report(Anchor_borrow_info, Mirror_position_info)

# Cooldown: Write date of today into cooldown dictionary
cooldowns['Staus_Report_cooldown'] = datetime_now + timedelta(hours=config.Status_update_frequency)
report_logger.info(f'[Status Update] Cooldown limit has been activated. Next Status Report will be send on {(datetime_now + timedelta(hours=config.Status_update_frequency)):%Y-%m-%d %H:%M}')
cooldowns['Staus_Report_cooldown'] = datetime.strptime(f'{date.today()} {config.Status_update_time}', '%Y-%m-%d %H:%M') + timedelta(hours=config.Status_update_frequency)
report_logger.info(f'[Status Update] Cooldown limit has been activated. Next Status Report will be send on {(datetime.strptime(f"{date.today()} {config.Status_update_time}", "%Y-%m-%d %H:%M") + timedelta(hours=config.Status_update_frequency)):%Y-%m-%d %H:%M}')
else:
default_logger.debug(f'[Status Update] Not sent as we are before your desired time ({config.Status_update_time}).')
else:
Expand Down

0 comments on commit 1f91b40

Please sign in to comment.