From 61b965a8a2c29089048659c52478ce8ee81a0b0d Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Wed, 4 Aug 2021 10:53:19 -0230 Subject: [PATCH] Allows users to set a max priority fee below suggested, just showing a warning in that case (#11750) --- app/_locales/en/messages.json | 2 +- ui/hooks/useGasFeeInputs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index f9be7c085..9a944df83 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -672,7 +672,7 @@ "message": "Max priority fee is higher than necessary. You may pay more than needed." }, "editGasMaxPriorityFeeLow": { - "message": "Max priority fee too low for network conditions" + "message": "Max priority fee extremely low for network conditions" }, "editGasMaxPriorityFeeTooltip": { "message": "Max priority fee (aka “miner tip”) goes directly to miners and incentivizes them to prioritize your transaction. You’ll most often pay your max setting" diff --git a/ui/hooks/useGasFeeInputs.js b/ui/hooks/useGasFeeInputs.js index 9dd8372ee..0aff8bbb0 100644 --- a/ui/hooks/useGasFeeInputs.js +++ b/ui/hooks/useGasFeeInputs.js @@ -397,7 +397,7 @@ export function useGasFeeInputs( maxPriorityFeePerGasToUse < gasFeeEstimates?.low?.suggestedMaxPriorityFeePerGas ) { - gasErrors.maxPriorityFee = GAS_FORM_ERRORS.MAX_PRIORITY_FEE_TOO_LOW; + gasWarnings.maxPriorityFee = GAS_FORM_ERRORS.MAX_PRIORITY_FEE_TOO_LOW; } else if (maxPriorityFeePerGasToUse >= maxFeePerGasToUse) { gasErrors.maxFee = GAS_FORM_ERRORS.MAX_FEE_IMBALANCE; } else if (