1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

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

This commit is contained in:
Dan J Miller 2020-10-07 14:25:38 -02:30 committed by GitHub
parent b98b0b6d01
commit 7a28783924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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