Skip to content

Commit

Permalink
update filter for lux and zoo tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
foxier25 committed Nov 22, 2024
1 parent 994ab01 commit 9c8019d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/Tokens/TokenTable/TokenTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,12 @@ const getCurrentHourTimestamp = (): string => {
// You can pass these date values as parameters to your transformed tokens calculation.
const todayDate = getTodayDate();
const currentHourTime = getCurrentHourTimestamp();
const tokenAddresses = TOKENS_LUX_LIST.tokens
.filter((token) => token.chainId === 96369) // Filter by chainId
.map((token) => token.address.toUpperCase()); // Extract the address

console.log("tokenAddresses",tokenAddresses);

export default function TokenTable() {
const chainName = validateUrlChainParam(useParams<{ chainName?: string }>().chainName);
console.log("chainName", chainName);

const tokenAddresses = TOKENS_LUX_LIST.tokens
.filter((token) => token.chainId === CHAIN_NAME_TO_CHAIN_ID[chainName]) // Filter by chainId
.map((token) => token.address.toUpperCase()); // Extract the address
const { data: luxData, loading: luxLoading, refetch } = useQuery(getTokenInfoQuery, {
client: luxClient,
pollInterval: 5000,
Expand Down

0 comments on commit 9c8019d

Please sign in to comment.