1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/ui/hooks
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
..
gasFeeInput Alert users when the network is busy (#12268) 2022-01-07 12:18:02 -07:00
useApproveTransaction.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCopyToClipboard.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCurrencyDisplay.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCurrencyDisplay.test.js move metamask state selectors out of send (#11249) 2021-06-08 11:03:59 -05:00
useCurrentAsset.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useEqualityCheck.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useEthFiatAmount.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasFeeErrors.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasFeeErrors.test.js Extracting out error and warning code from useGasFeeInputs hook (#12283) 2021-10-18 17:25:35 +05:30
useGasFeeEstimates.js Alert users when the network is busy (#12268) 2022-01-07 12:18:02 -07:00
useGasFeeEstimates.test.js Restore heartbeat to transaction confirmation, use isGasEstimatesLoading more broadly (#11781) 2021-08-05 18:59:58 -05:00
useI18nContext.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useIncrementedGasFees.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMethodData.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMetricEvent.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useOriginMetadata.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
usePrevious.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useSafeGasEstimatePolling.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
useShouldAnimateGasEstimations.js Improve flashing behaviour for loading gas estimates (on confirm screen) (#11852) 2021-08-16 20:18:24 -02:30
useShouldShowSpeedUp.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useSwappedTokenValue.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTimeout.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenData.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenData.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenDisplayValue.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenDisplayValue.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenFiatAmount.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokensToSearch.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useTokenTracker.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useTransactionDisplayData.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTransactionDisplayData.test.js Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
useUserPreferencedCurrency.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useUserPreferencedCurrency.test.js Changed ETH decimal values to have 8 places for sending (#12437) 2021-11-05 07:52:03 -07:00