diff --git a/packages/synapse-interface/components/Portfolio/components/PortfolioTokenAsset.tsx b/packages/synapse-interface/components/Portfolio/components/PortfolioTokenAsset.tsx index 92c8b99088..6850adcfaf 100644 --- a/packages/synapse-interface/components/Portfolio/components/PortfolioTokenAsset.tsx +++ b/packages/synapse-interface/components/Portfolio/components/PortfolioTokenAsset.tsx @@ -1,13 +1,9 @@ import React, { useCallback } from 'react' import { zeroAddress } from 'viem' -import { isNumber, isNull } from 'lodash' +import { isNumber } from 'lodash' import Image from 'next/image' import { useAppDispatch } from '@/store/hooks' -import { - setFromChainId, - setFromToken, - updateFromValue, -} from '@/slices/bridge/reducer' +import { setFromChainId, setFromToken } from '@/slices/bridge/reducer' import { Token } from '@/utils/types' import { inputRef } from '../../StateManagedBridge/InputContainer' import { useBridgeState } from '@/slices/bridge/hooks' @@ -17,8 +13,6 @@ import { getParsedBalance } from '@/utils/getParsedBalance' import { useGasEstimator } from '@/utils/hooks/useGasEstimator' import GasIcon from '@/components/icons/GasIcon' import { trimTrailingZeroesAfterDecimal } from '@/utils/trimTrailingZeroesAfterDecimal' -import toast from 'react-hot-toast' -import { formatBigIntToString } from '@/utils/bigint/format' const handleFocusOnBridgeInput = () => { inputRef.current?.focus() diff --git a/packages/synapse-interface/components/StateManagedBridge/InputContainer.tsx b/packages/synapse-interface/components/StateManagedBridge/InputContainer.tsx index 5fba8721b2..5b37c80fbc 100644 --- a/packages/synapse-interface/components/StateManagedBridge/InputContainer.tsx +++ b/packages/synapse-interface/components/StateManagedBridge/InputContainer.tsx @@ -2,7 +2,6 @@ import { isNull, isNumber } from 'lodash' import toast from 'react-hot-toast' import React, { useEffect, useState, useCallback, useMemo } from 'react' import { useAccount } from 'wagmi' -import { zeroAddress } from 'viem' import { useAppDispatch } from '@/store/hooks' import { initialState, @@ -24,7 +23,6 @@ import { CHAINS_BY_ID } from '@/constants/chains' import { useFromChainListArray } from './hooks/useFromChainListArray' import { useBridgeState } from '@/slices/bridge/hooks' import { usePortfolioState } from '@/slices/portfolio/hooks' -import { TokenAndBalance } from '@/utils/actions/fetchPortfolioBalances' import { BridgeSectionContainer } from '@/components/ui/BridgeSectionContainer' import { BridgeAmountContainer } from '@/components/ui/BridgeAmountContainer' import { useFromTokenListArray } from './hooks/useFromTokenListArray' @@ -32,7 +30,6 @@ import MiniMaxButton from '../buttons/MiniMaxButton' import { AvailableBalance } from './AvailableBalance' import { useGasEstimator } from '../../utils/hooks/useGasEstimator' import { getParsedBalance } from '@/utils/getParsedBalance' -import { fetchGasData } from '@/slices/gasDataSlice' export const inputRef = React.createRef() @@ -162,7 +159,7 @@ export const InputContainer = () => { {hasMounted && isConnected && ( )} diff --git a/packages/synapse-interface/components/StateManagedSwap/SwapInputContainer.tsx b/packages/synapse-interface/components/StateManagedSwap/SwapInputContainer.tsx index 4a676746b7..3946b42f2e 100644 --- a/packages/synapse-interface/components/StateManagedSwap/SwapInputContainer.tsx +++ b/packages/synapse-interface/components/StateManagedSwap/SwapInputContainer.tsx @@ -147,7 +147,7 @@ export const SwapInputContainer = () => { {hasMounted && isConnected && ( )}