Skip to content

Commit

Permalink
chore: remove unnecessary dependencies for dest token list generator
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Jan 11, 2025
1 parent a151276 commit d9fe796
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ui/hooks/bridge/useTokensWithFiltering.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import { useCallback } from 'react';
import { useSelector } from 'react-redux';
import { isEqual } from 'lodash';
import { ChainId } from '@metamask/controller-utils';
import { Hex } from '@metamask/utils';
import { zeroAddress } from 'ethereumjs-util';
import {
getAllDetectedTokensForSelectedAddress,
getTokenExchangeRates,
selectERC20TokensByChain,
} from '../../selectors';
import {
getConversionRate,
getCurrentCurrency,
} from '../../ducks/metamask/metamask';
import {
SWAPS_CHAINID_DEFAULT_TOKEN_MAP,
SwapsTokenObject,
Expand Down Expand Up @@ -53,10 +47,6 @@ export const useTokensWithFiltering = (chainId?: ChainId | Hex) => {
getAllDetectedTokensForSelectedAddress,
);

const tokenConversionRates = useSelector(getTokenExchangeRates, isEqual);
const conversionRate = useSelector(getConversionRate);
const currentCurrency = useSelector(getCurrentCurrency);

const { assetsWithBalance: multichainTokensWithBalance } =
useMultichainBalances();

Expand Down Expand Up @@ -226,9 +216,6 @@ export const useTokensWithFiltering = (chainId?: ChainId | Hex) => {
[
multichainTokensWithBalance,
topTokens,
tokenConversionRates,
conversionRate,
currentCurrency,
chainId,
tokenList,
allDetectedTokens,
Expand Down

0 comments on commit d9fe796

Please sign in to comment.