Skip to content

Commit

Permalink
main chart data load from DB fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnovichek committed Jan 23, 2025
1 parent 2b90dba commit a2ed438
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard_app/charts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_data(
# engine="fastparquet",
# )
# logger.info(f"Columns: {main_chart_data[pair].columns}")
except FileNotFoundError:
except Exception:
main_chart_data[pair] = pd.DataFrame()

loans_data = get_loans_table_data(
Expand Down
18 changes: 9 additions & 9 deletions apps/shared/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ def choices(cls) -> list[str]:
"""
return [choice.value for choice in cls]


# FIXME Uncomment when DAI is added correct address
PAIRS: list[str] = [
"ETH-USDC",
"ETH-USDT",
"ETH-DAI",
"ETH-DAI V2",
# "ETH-DAI",
# "ETH-DAI V2",
"WBTC-USDC",
"WBTC-USDT",
"WBTC-DAI",
"WBTC-DAI V2",
# "WBTC-DAI",
# "WBTC-DAI V2",
"STRK-USDC",
"STRK-USDT",
"STRK-DAI",
"STRK-DAI V2",
# "STRK-DAI",
# "STRK-DAI V2",
]

UNDERLYING_SYMBOLS_TO_UNDERLYING_ADDRESSES = {
Expand All @@ -217,6 +217,6 @@ def choices(cls) -> list[str]:
"STRK": "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",
"USDC": "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8",
"USDT": "0x068f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8",
"DAI": "0x00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3",
"DAI V2": "0x05574eb6b8789a91466f902c380d978e472db68170ff82a5b650b95a58ddf4ad",
# "DAI": "0x00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3",
# "DAI V2": "0x05574eb6b8789a91466f902c380d978e472db68170ff82a5b650b95a58ddf4ad",
}

0 comments on commit a2ed438

Please sign in to comment.