From 3c3ee37bef617ebf03f736d2056ca704e7538849 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Tue, 9 Jul 2024 16:22:21 +0300 Subject: [PATCH] (feat) format CONFIG and make auth env --- CONFIG.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CONFIG.py b/CONFIG.py index 527f29b..5a774d5 100644 --- a/CONFIG.py +++ b/CONFIG.py @@ -2,12 +2,11 @@ import os from dotenv import load_dotenv - load_dotenv() MINER_COINS = ["Algorand", "Avalanche", "DAO Maker", "Faith Tribe", "Fear", "Frontier", - "Harmony", "Hot Cross", "HUMAN Protocol", "Oddz", "Shera", "Firo", - "Vesper Finance", "Youclout", "Nimiq"] + "Harmony", "Hot Cross", "HUMAN Protocol", "Oddz", "Shera", "Firo", + "Vesper Finance", "Youclout", "Nimiq"] MINER_EXCHANGES = ["Binance", "FTX", "Coinbase Exchange", "Huobi Global", "OKX", "KuCoin", "Kraken", "Bybit (Spot)", "FTX.US", "Crypto.com Exchange", "Binance US", "MEXC Global", "Gate.io", "BitMart", "Bitfinex", "AscendEX (BitMax)", @@ -18,7 +17,7 @@ DEFAULT_MINER_COINS = ["Avalanche"] CERTIFIED_EXCHANGES = ["ascendex", "binance", "bybit", "gate.io", "hitbtc", "huobi", "kucoin", "okx", "gateway"] CERTIFIED_STRATEGIES = ["xemm", "cross exchange market making", "pmm", "pure market making"] -AUTH_SYSTEM_ENABLED = False +AUTH_SYSTEM_ENABLED = os.getenv("AUTH_SYSTEM_ENABLED", False) BACKEND_API_HOST = os.getenv("BACKEND_API_HOST", "127.0.0.1") BACKEND_API_PORT = os.getenv("BACKEND_API_PORT", 8000)