Skip to content

Commit

Permalink
update tokenlist for preprod
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridel1e committed Feb 12, 2024
1 parent 08d0211 commit 2fe3435
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/applicationConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion src/network/cardano/api/common/defaultTokenList.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -18,5 +19,5 @@ export const defaultTokenList$ = getDefaultTokenList<DefaultTokenListItem>(
(item) => {
return item.subject;
},
applicationConfig.networksSettings.cardano.additionalTokenList,
cardanoNetworkData.additionalTokenList,
);
4 changes: 3 additions & 1 deletion src/network/cardano/api/operations/common/inputSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}),
Expand Down

0 comments on commit 2fe3435

Please sign in to comment.