1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/hooks/gasFeeInput
Elliot Winkler 7b963cabd7
Alert users when the network is busy (#12268)
When a lot of transactions are occurring on the network, such as during
an NFT drop, it drives gas fees up. When this happens, we want to not
only inform the user about this, but also dissuade them from using a
higher gas fee (as we have proved in testing that high gas fees can
cause bidding wars and exacerbate the situation).

The method for determining whether the network is "busy" is already
handled by GasFeeController, which exposes a `networkCongestion`
property within the gas fee estimate data. If this number exceeds 0.66 —
meaning that the current base fee is above the 66th percentile among the
base fees over the last several days — then we determine that the
network is "busy".
2022-01-07 12:18:02 -07:00
..
test-utils.js Using EIP-1559 V2 for swaps (#12966) 2021-12-12 04:56:28 +05:30
useGasEstimates.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasEstimates.test.js Refactoring useGasFeeInputs hook (#12327) 2021-10-22 22:44:28 +05:30
useGasFeeErrors.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasFeeErrors.test.js Confirm transaction page - onchain failure handling (#12743) 2021-11-24 22:32:53 +05:30
useGasFeeInputs.js Alert users when the network is busy (#12268) 2022-01-07 12:18:02 -07:00
useGasFeeInputs.test.js Using EIP-1559 V2 for swaps (#12966) 2021-12-12 04:56:28 +05:30
useGasPriceInput.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasPriceInput.test.js Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
useMaxFeePerGasInput.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMaxFeePerGasInput.test.js Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
useMaxPriorityFeePerGasInput.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMaxPriorityFeePerGasInput.test.js Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
useTransactionFunction.test.js EIP-1559 V2 UI fixes (#13222) 2022-01-07 04:10:31 +05:30
useTransactionFunctions.js EIP-1559 V2 UI fixes (#13222) 2022-01-07 04:10:31 +05:30
utils.js Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00