Skip to content

Commit

Permalink
chore: remove unsufficient funds for gas fees on swap controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Sep 6, 2024
1 parent c9af13d commit b8b8914
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/core/src/controllers/SwapController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,12 @@ export const SwapController = {
sourceTokenAddress,
state.myTokensWithBalance
)
const insufficientNetworkTokenForGas = SwapCalculationUtil.isInsufficientNetworkTokenForGas(
state.networkBalanceInUSD,
state.gasPriceInUSD
)
const insufficientNetworkTokenForGas = false

// SwapCalculationUtil.isInsufficientNetworkTokenForGas(

Check failure on line 797 in packages/core/src/controllers/SwapController.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Expected a block comment instead of consecutive line comments
// state.networkBalanceInUSD,

Check failure on line 798 in packages/core/src/controllers/SwapController.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Comments should not begin with a lowercase character
// state.gasPriceInUSD

Check failure on line 799 in packages/core/src/controllers/SwapController.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Comments should not begin with a lowercase character
// )

return insufficientNetworkTokenForGas || isInsufficientSourceTokenForSwap
},
Expand Down

0 comments on commit b8b8914

Please sign in to comment.