mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Prevent user from submitting swap if they do not have enough for the max gas fee (#9500)
This commit is contained in:
parent
b98b0b6d01
commit
7a28783924
@ -142,7 +142,7 @@ export default function ViewQuote () {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
const gasTotalInWeiHex = calcGasTotal(usedGasLimit, gasPrice)
|
const gasTotalInWeiHex = calcGasTotal(maxGasLimit, gasPrice)
|
||||||
|
|
||||||
const { tokensWithBalances } = useTokenTracker(swapsTokens)
|
const { tokensWithBalances } = useTokenTracker(swapsTokens)
|
||||||
const balanceToken = fetchParamsSourceToken === ETH_SWAPS_TOKEN_OBJECT.address
|
const balanceToken = fetchParamsSourceToken === ETH_SWAPS_TOKEN_OBJECT.address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user