From b8b89145cfff73adac2f41794566513ede238a06 Mon Sep 17 00:00:00 2001 From: tomiir Date: Thu, 5 Sep 2024 20:55:37 -0600 Subject: [PATCH] chore: remove unsufficient funds for gas fees on swap controller --- packages/core/src/controllers/SwapController.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/core/src/controllers/SwapController.ts b/packages/core/src/controllers/SwapController.ts index 262194cee9..6637b02dde 100644 --- a/packages/core/src/controllers/SwapController.ts +++ b/packages/core/src/controllers/SwapController.ts @@ -792,10 +792,12 @@ export const SwapController = { sourceTokenAddress, state.myTokensWithBalance ) - const insufficientNetworkTokenForGas = SwapCalculationUtil.isInsufficientNetworkTokenForGas( - state.networkBalanceInUSD, - state.gasPriceInUSD - ) + const insufficientNetworkTokenForGas = false + + // SwapCalculationUtil.isInsufficientNetworkTokenForGas( + // state.networkBalanceInUSD, + // state.gasPriceInUSD + // ) return insufficientNetworkTokenForGas || isInsufficientSourceTokenForSwap },