-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove non-critical gas estimate fallback data (#712)
If a request to the Gas API fails for any reason, we attempt to hit Infura directly and compute the same pieces of data that the Gas API computes. However, considering that this data supports the new gas fee UI design in the extension, it is not necessary for us to emulate the API 100%. We only need data that is critical to allow users to see and select fees for different priority levels in order to make transactions. Everything else — a snapshot of recent base and priority fees, whether the base and priority fees have risen or fallen recently, and how busy the network is — is not important. This commit removes these extra computations so as to further limit the amount of requests that are made to Infura.
- Loading branch information
Showing
17 changed files
with
75 additions
and
804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.