From 73d64f5e53fe8a7310869549ab117dac2008664b Mon Sep 17 00:00:00 2001 From: retroboy Date: Fri, 1 Mar 2024 10:09:33 +0100 Subject: [PATCH] fixes --- src/constants/index.ts | 14 +++++++++++++- src/pages/Pool/index.tsx | 1 - src/state/user/hooks.tsx | 5 +++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/constants/index.ts b/src/constants/index.ts index 11605bcd..0a636a5b 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -108,6 +108,17 @@ export const WBTC = { ) } +export const STRK = { + [ChainId.SN_MAIN]: new Token( + ChainId.SN_MAIN, + '0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d', + 18, + 'STRK', + 'Starknet', + 'https://static.jediswap.xyz/tokens-list/assets/STRK.png' + ) +} + export const wstETH = { [ChainId.SN_GOERLI]: new Token( ChainId.SN_GOERLI, @@ -174,7 +185,8 @@ export const BASES_TO_TRACK_LIQUIDITY_FOR: ChainTokenList = { USDC[ChainId.SN_MAIN], USDT[ChainId.SN_MAIN], WBTC[ChainId.SN_MAIN], - wstETH[ChainId.SN_MAIN] + wstETH[ChainId.SN_MAIN], + STRK[ChainId.SN_MAIN] ] } diff --git a/src/pages/Pool/index.tsx b/src/pages/Pool/index.tsx index e87c8577..e2079d1e 100644 --- a/src/pages/Pool/index.tsx +++ b/src/pages/Pool/index.tsx @@ -112,7 +112,6 @@ export default function Pool() { // fetch the user's balances of all tracked V2 LP tokens const trackedTokenPairs = useTrackedTokenPairs() - const tokenPairsWithLiquidityTokens = useMemo( () => trackedTokenPairs.map(tokens => ({ liquidityToken: getLiquidityToken(tokens), tokens })), [trackedTokenPairs] diff --git a/src/state/user/hooks.tsx b/src/state/user/hooks.tsx index a2ddfd7b..85503923 100644 --- a/src/state/user/hooks.tsx +++ b/src/state/user/hooks.tsx @@ -206,13 +206,14 @@ export function useTrackedTokenPairs(): [Token, Token][] { return [base, token] } }) - .filter((p): p is [Token, Token] => p !== null) + .filter((p): p is [Token, Token] => { + return p !== null + }) ) }) : [], [tokens, chainId] ) - // pairs saved by users const savedSerializedPairs = useSelector(({ user: { pairs } }) => pairs)