diff --git a/app/config.py b/app/config.py index 6512e56..2eb78aa 100644 --- a/app/config.py +++ b/app/config.py @@ -43,7 +43,7 @@ 'PRICE_MULTIPLIER' : os.environ.get('PRICE_MULTIPLIER', '0.9'), #should be <1, used in payout in calc maxFeePerGas to avoid base price changing 'MAX_PRIORITY_FEE': os.environ.get('MAX_PRIORITY_FEE', '0.00000000000017'), #in ETH 'SLEEP_AFTER_SEEDING': os.environ.get('SLEEP_AFTER_SEEDING', 60), #in sec - 'ACCOUNT_PASSWORD' : os.environ.get('ACCOUNT_PASSWORD', "shkeeper"), #Password for restoring account in metamask or others, should be str + 'ACCOUNT_PASSWORD' : os.environ.get('ACCOUNT_PASSWORD', "shkeeper"), #Password for restoring account in metamask or others, should be str (DEPRECATED) 'REDIS_HOST': os.environ.get('REDIS_HOST', 'localhost'), 'ETHEREUM_HOST': os.environ.get('ETHEREUM_HOST', 'ethereum'), 'LAST_BLOCK_LOCKED': os.environ.get('LAST_BLOCK_LOCKED', 'TRUE'), diff --git a/app/token.py b/app/token.py index 51d8180..b6cf3c6 100644 --- a/app/token.py +++ b/app/token.py @@ -447,7 +447,7 @@ def drain_tocken_account(self, account, destination): "value": self.provider.toHex(self.provider.toWei(need_to_send, "ether")), "gas": self.provider.toHex(gas_coin_count), "maxFeePerGas": self.provider.toHex(self.provider.toWei(max_fee_per_gas_coin, 'ether')), - "maxPriorityFeePerGas": self.provider.toHex(self.provider.toWei(fee, "ether"))}, config['ACCOUNT_PASSWORD']) + "maxPriorityFeePerGas": self.provider.toHex(self.provider.toWei(fee, "ether"))}, get_account_password()) logger.warning(f'send coins to token account: {str(txid.hex())}') time.sleep(int(config['SLEEP_AFTER_SEEDING'])) # Send tokens to the fee account