Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull in networkCongestion along with gas estimates #632

Merged
merged 1 commit into from Dec 7, 2021

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Nov 16, 2021

The Metaswap API now includes a networkCongestion property when
requesting EIP-1559-compatible gas fee estimates.
This value, which is a
number from 0 to 1, where 0 represents "not congested" and 1 represents
"extremely congested", can be used to communicate the status of the
network to users when they are sending transactions.

This commit ensures that GasFeeController includes networkCongestion
as part of the state it persists, no matter if using the Metaswap API to
obtain this information or falling back to eth_feeHistory.

This is a part of the EIP-1559 v2 work.

@mcmire mcmire requested a review from a team as a code owner November 16, 2021 22:51
@mcmire mcmire force-pushed the add-eth-fee-history-fallback-for-gas-estimates branch from fa28639 to 6c94a80 Compare November 30, 2021 23:27
@mcmire mcmire force-pushed the add-eth-fee-history-fallback-for-gas-estimates branch from 6c94a80 to 47e0fa0 Compare November 30, 2021 23:35
@mcmire mcmire force-pushed the add-eth-fee-history-fallback-for-gas-estimates branch 2 times, most recently from fbbc906 to 46c3788 Compare December 2, 2021 00:32
Base automatically changed from add-eth-fee-history-fallback-for-gas-estimates to eip-1559-v2 December 2, 2021 16:57
The Metaswap API now includes a `networkCongestion` property when
requesting EIP-1559-compatible gas fee estimates. This value, which is a
number from 0 to 1, where 0 represents "not congested" and 1 represents
"extremely congested", can be used to communicate the status of the
network to users when they are sending transactions.

This commit ensures that GasFeeController includes `networkCongestion`
as part of the state it persists, no matter if using the Metaswap API to
obtain this information or falling back to `eth_feeHistory`.

This is a part of the EIP-1559 v2 work.
@@ -50,21 +82,22 @@ describe('fetchGasEstimatesViaEthFeeHistory', () => {
minWaitTimeEstimate: 15_000,
maxWaitTimeEstimate: 30_000,
suggestedMaxPriorityFeePerGas: '1',
suggestedMaxFeePerGas: '111',
suggestedMaxFeePerGas: '221',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the base fee per gas values above so that's why these changed.

@mcmire mcmire merged commit 1ad1546 into eip-1559-v2 Dec 7, 2021
@mcmire mcmire deleted the pull-in-network-congestion branch December 7, 2021 16:53
mcmire added a commit that referenced this pull request Dec 10, 2021
The Metaswap API now includes a `networkCongestion` property when
requesting EIP-1559-compatible gas fee estimates. This value, which is a
number from 0 to 1, where 0 represents "not congested" and 1 represents
"extremely congested", can be used to communicate the status of the
network to users when they are sending transactions.

This commit ensures that GasFeeController includes `networkCongestion`
as part of the state it persists, no matter if using the Metaswap API to
obtain this information or falling back to `eth_feeHistory`.

This is a part of the EIP-1559 v2 work.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The Metaswap API now includes a `networkCongestion` property when
requesting EIP-1559-compatible gas fee estimates. This value, which is a
number from 0 to 1, where 0 represents "not congested" and 1 represents
"extremely congested", can be used to communicate the status of the
network to users when they are sending transactions.

This commit ensures that GasFeeController includes `networkCongestion`
as part of the state it persists, no matter if using the Metaswap API to
obtain this information or falling back to `eth_feeHistory`.

This is a part of the EIP-1559 v2 work.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The Metaswap API now includes a `networkCongestion` property when
requesting EIP-1559-compatible gas fee estimates. This value, which is a
number from 0 to 1, where 0 represents "not congested" and 1 represents
"extremely congested", can be used to communicate the status of the
network to users when they are sending transactions.

This commit ensures that GasFeeController includes `networkCongestion`
as part of the state it persists, no matter if using the Metaswap API to
obtain this information or falling back to `eth_feeHistory`.

This is a part of the EIP-1559 v2 work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants