Skip to content

Commit 07ba52e

Browse files
committed
update tokenlist
1 parent ea50018 commit 07ba52e

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

src/api/routes/swap/swapRouter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ function parseRequest(request: Request): SwapParams {
129129
throw new ApiError(StatusCodes.NOT_FOUND, "Token in not supported")
130130

131131
const tokenOut = findToken(chainId, validatedParams.tokenOut)
132+
console.log("tokenOut: ", tokenOut)
132133
if (!tokenOut)
133134
throw new ApiError(StatusCodes.NOT_FOUND, "Token out not supported")
134135

src/common/utils/tokenList.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,6 @@ const cache: Record<number, TokenListItem[]> = {}
3333
fs.readFileSync(`${dir}/${file}`).toString(),
3434
) as TokenListItem[]
3535
}
36-
37-
if (
38-
!cache[1923].find((t) =>
39-
isAddressEqual(
40-
t.addressInfo,
41-
"0x9ab96A4668456896d45c301Bc3A15Cee76AA7B8D",
42-
),
43-
)
44-
) {
45-
// TODO add external tokens sources
46-
cache[1923].push({
47-
addressInfo: "0x9ab96A4668456896d45c301Bc3A15Cee76AA7B8D",
48-
chainId: 1923,
49-
name: "rUSDC",
50-
symbol: "rUSDC",
51-
decimals: 6,
52-
logoURI:
53-
"https://assets.coingecko.com/coins/images/55061/standard/rUSDC-_200x200.png?1743524727",
54-
meta: {},
55-
})
56-
}
5736
})()
5837

5938
export default function getTokenList(chainId: number): TokenListItem[] {

0 commit comments

Comments
 (0)