Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

disable solana tokens #735

Merged
merged 2 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Array [
"algorand/asa/312769",
"ethereum/erc20/usd_tether__erc20_",
"polygon/erc20/(pos)_tether_usd",
"solana/spl/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"tron/trc20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
]
`;
5 changes: 3 additions & 2 deletions packages/cryptoassets/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import trc20tokens from "../data/trc20";
import bep20tokens from "../data/bep20";
import polygonTokens from "../data/polygon-erc20";
import asatokens from "../data/asa";
import spltokens from "../data/spl";
//import spltokens from "../data/spl";
const emptyArray = [];
const tokensArray: TokenCurrency[] = [];
const tokensArrayWithDelisted: TokenCurrency[] = [];
Expand All @@ -22,7 +22,7 @@ addTokens(trc10tokens.map(convertTRONTokens("trc10")));
addTokens(trc20tokens.map(convertTRONTokens("trc20")));
addTokens(bep20tokens.map(convertBEP20));
addTokens(asatokens.map(convertAlgorandASATokens));
addTokens(spltokens.map(convertSplTokens));
//addTokens(spltokens.map(convertSplTokens));
type TokensListOptions = {
withDelisted: boolean;
};
Expand Down Expand Up @@ -307,6 +307,7 @@ function convertTRONTokens(type: "trc10" | "trc20") {
});
}

/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
function convertSplTokens([
chainId,
name,
Expand Down