Prevent user from submitting swap if they do not have enough for the max gas fee (#9500)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent b98b0b6d01
commit 7a28783924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/pages/swaps/view-quote/view-quote.js

@ -142,7 +142,7 @@ export default function ViewQuote () {
)
)
const gasTotalInWeiHex = calcGasTotal(usedGasLimit, gasPrice)
const gasTotalInWeiHex = calcGasTotal(maxGasLimit, gasPrice)
const { tokensWithBalances } = useTokenTracker(swapsTokens)
const balanceToken = fetchParamsSourceToken === ETH_SWAPS_TOKEN_OBJECT.address

Loading…
Cancel
Save