@@ -8,7 +8,6 @@ import { Warning } from 'src/components/primitives/Warning';
88import { Asset , AssetInput } from 'src/components/transactions/AssetInput' ;
99import { TxModalDetails } from 'src/components/transactions/FlowCommons/TxModalDetails' ;
1010import { StETHCollateralWarning } from 'src/components/Warnings/StETHCollateralWarning' ;
11- import { USDTParaswapWarning } from 'src/components/Warnings/USDTParaswapWarning' ;
1211import { CollateralType } from 'src/helpers/types' ;
1312import { useCollateralSwap } from 'src/hooks/paraswap/useCollateralSwap' ;
1413import { getDebtCeilingData } from 'src/hooks/useAssetCaps' ;
@@ -41,7 +40,7 @@ export const SwapModalContent = ({
4140 isWrongNetwork,
4241} : ModalWrapperProps ) => {
4342 const { reserves, user, marketReferencePriceInUsd } = useAppDataContext ( ) ;
44- const { currentChainId, currentNetworkConfig, currentMarketData } = useProtocolDataContext ( ) ;
43+ const { currentChainId, currentNetworkConfig } = useProtocolDataContext ( ) ;
4544 const { currentAccount } = useWeb3Context ( ) ;
4645 const { gasLimit, mainTxState : supplyTxState , txError } = useModalContext ( ) ;
4746
@@ -110,11 +109,6 @@ export const SwapModalContent = ({
110109 // if the hf would drop below 1 from the hf effect a flashloan should be used to mitigate liquidation
111110 const shouldUseFlashloan = useFlashloan ( user . healthFactor , hfEffectOfFromAmount ) ;
112111
113- const isUSDTEthMainnetV3 =
114- currentChainId === 1 &&
115- ! ! currentMarketData . v3 &&
116- ( swapTarget . reserve . symbol === 'USDT' || poolReserve . symbol === 'USDT' ) ;
117-
118112 // consider caps
119113 // we cannot check this in advance as it's based on the swap result
120114 const remainingSupplyCap = remainingCap (
@@ -294,12 +288,6 @@ export const SwapModalContent = ({
294288 </ Warning >
295289 ) }
296290
297- { isUSDTEthMainnetV3 && (
298- < Warning severity = "warning" sx = { { mt : 2 , mb : 0 } } >
299- < USDTParaswapWarning />
300- </ Warning >
301- ) }
302-
303291 < TxModalDetails
304292 gasLimit = { gasLimit }
305293 slippageSelector = {
@@ -329,10 +317,7 @@ export const SwapModalContent = ({
329317 targetReserve = { swapTarget . reserve }
330318 symbol = { poolReserve . symbol }
331319 blocked = {
332- blockingError !== undefined ||
333- error !== '' ||
334- isUSDTEthMainnetV3 ||
335- swapTarget . reserve . symbol === 'stETH'
320+ blockingError !== undefined || error !== '' || swapTarget . reserve . symbol === 'stETH'
336321 }
337322 useFlashLoan = { shouldUseFlashloan }
338323 loading = { routeLoading }
0 commit comments