From 947777fbe72e2f2d498c4c451fc90fbf236a0886 Mon Sep 17 00:00:00 2001 From: Yusuf Seyrek Date: Tue, 1 Aug 2023 10:43:50 +0300 Subject: [PATCH] fix(TradingView Charts): resolveSymbol callback arguments (#334) --- .../Trade/TradeChart/OsmosisTheGraphDataFeed.ts | 3 +-- src/components/Trade/TradeChart/constants.ts | 9 +-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts b/src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts index 964d00fe..f83c701b 100644 --- a/src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts +++ b/src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts @@ -120,8 +120,7 @@ export class OsmosisTheGraphDataFeed implements IDatafeedChartApi { setTimeout(() => onResolve({ ...defaultSymbolInfo, - currency_code: pairName.split(PAIR_SEPARATOR)[0], - original_currency_code: pairName.split(PAIR_SEPARATOR)[1], + name: pairName.split(PAIR_SEPARATOR)[0], full_name: pairName, description: pairName, ticker: pairName, diff --git a/src/components/Trade/TradeChart/constants.ts b/src/components/Trade/TradeChart/constants.ts index 5e50e534..7b15b993 100644 --- a/src/components/Trade/TradeChart/constants.ts +++ b/src/components/Trade/TradeChart/constants.ts @@ -27,14 +27,7 @@ export const overrides = { 'linetooltrendline.linewidth': 2, } -export const defaultSymbolInfo: LibrarySymbolInfo = { - currency_code: '', - original_currency_code: '', - full_name: '', - description: '', - ticker: '', - name: 'Osmosis', - exchange: 'Osmosis', +export const defaultSymbolInfo = { listed_exchange: 'Osmosis', type: 'AMM', session: '24x7',