fix(TradingView Charts): resolveSymbol callback arguments (#334)

This commit is contained in:
Yusuf Seyrek 2023-08-01 10:43:50 +03:00 committed by GitHub
parent fef4608681
commit 947777fbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -120,8 +120,7 @@ export class OsmosisTheGraphDataFeed implements IDatafeedChartApi {
setTimeout(() => setTimeout(() =>
onResolve({ onResolve({
...defaultSymbolInfo, ...defaultSymbolInfo,
currency_code: pairName.split(PAIR_SEPARATOR)[0], name: pairName.split(PAIR_SEPARATOR)[0],
original_currency_code: pairName.split(PAIR_SEPARATOR)[1],
full_name: pairName, full_name: pairName,
description: pairName, description: pairName,
ticker: pairName, ticker: pairName,

View File

@ -27,14 +27,7 @@ export const overrides = {
'linetooltrendline.linewidth': 2, 'linetooltrendline.linewidth': 2,
} }
export const defaultSymbolInfo: LibrarySymbolInfo = { export const defaultSymbolInfo = {
currency_code: '',
original_currency_code: '',
full_name: '',
description: '',
ticker: '',
name: 'Osmosis',
exchange: 'Osmosis',
listed_exchange: 'Osmosis', listed_exchange: 'Osmosis',
type: 'AMM', type: 'AMM',
session: '24x7', session: '24x7',