diff --git a/src/applicationConfig.ts b/src/applicationConfig.ts index ade007619..ca804b4be 100644 --- a/src/applicationConfig.ts +++ b/src/applicationConfig.ts @@ -93,6 +93,18 @@ export const applicationConfig: ApplicationConfig = { lowBalanceGuide: '', analyticUrl: 'https://analytics-balanced.spectrum.fi/cardano/', isCreatePoolAvailable: false, + additionalTokenList: [ + { + subject: + '4b3459fd18a1dbabe207cd19c9951a9fac9f5c0f9c384e3d97efba267465737442', + name: 'testB', + decimals: 6, + ticker: 'TEST_B', + policyId: '4b3459fd18a1dbabe207cd19c9951a9fac9f5c0f9c384e3d97efba26', + url: '', + description: '', + }, + ], }, cardano: { name: 'cardano', diff --git a/src/network/cardano/api/common/defaultTokenList.ts b/src/network/cardano/api/common/defaultTokenList.ts index 24167836c..4b540fdab 100644 --- a/src/network/cardano/api/common/defaultTokenList.ts +++ b/src/network/cardano/api/common/defaultTokenList.ts @@ -1,5 +1,6 @@ import { applicationConfig } from '../../../../applicationConfig'; import { getDefaultTokenList } from '../../../../common/services/DefaultTokenList'; +import { cardanoNetworkData } from '../../utils/cardanoNetworkData.ts'; export interface DefaultTokenListItem { readonly policyId: string; @@ -18,5 +19,5 @@ export const defaultTokenList$ = getDefaultTokenList( (item) => { return item.subject; }, - applicationConfig.networksSettings.cardano.additionalTokenList, + cardanoNetworkData.additionalTokenList, ); diff --git a/src/network/cardano/api/operations/common/inputSelector.ts b/src/network/cardano/api/operations/common/inputSelector.ts index d99f85f05..6ffd409e3 100644 --- a/src/network/cardano/api/operations/common/inputSelector.ts +++ b/src/network/cardano/api/operations/common/inputSelector.ts @@ -97,7 +97,9 @@ export class DefaultCollateralSelector implements CollateralSelector { filter(Boolean), first(), switchMap((wallet) => wallet.getCollateral(amount)), - map((utxos) => selectUtxos(utxos, Value(amount)).map(item => ({ txOut: item }))), + map((utxos) => + selectUtxos(utxos, Value(amount)).map((item) => ({ txOut: item })), + ), catchError(() => { return of([]); }),