Skip to content

Commit

Permalink
Remove unused outputNetworkDetails in ExchangeModal
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Oct 13, 2023
1 parent 3bc7522 commit 294d595
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/screens/ExchangeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import {
GasFee,
LegacyGasFee,
LegacyGasFeeParams,
ParsedAddressAsset,
SwappableAsset,
} from '@/entities';
import { ExchangeModalTypes, isKeyboardOpen, Network } from '@/helpers';
Expand Down Expand Up @@ -170,10 +169,6 @@ export default function ExchangeModal({
const title = lang.t('swap.modal_types.swap');

const priceOfEther = useEthUSDPrice();
const [
outputNetworkDetails,
setOutputNetworkDetails,
] = useState<ParsedAddressAsset>();
const genericAssets = useSelector<
{ data: { genericAssets: { [address: string]: SwappableAsset } } },
{ [address: string]: SwappableAsset }
Expand Down Expand Up @@ -368,18 +363,6 @@ export default function ExchangeModal({
}
}, [currentNetwork, prevTxNetwork]);

useEffect(() => {
const getNativeOutputAsset = async () => {
if (!outputNetwork || !accountAddress) return;
const nativeAsset = await ethereumUtils.getNativeAssetForNetwork(
outputNetwork,
accountAddress
);
setOutputNetworkDetails(nativeAsset);
};
getNativeOutputAsset();
}, [outputNetwork, accountAddress]);

const defaultGasLimit = useMemo(() => {
return ethereumUtils.getBasicSwapGasLimit(Number(chainId));
}, [chainId]);
Expand Down

0 comments on commit 294d595

Please sign in to comment.