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

feat(suite): allow lower gas prices for eth networks #16066

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

adderpositive
Copy link
Contributor

@adderpositive adderpositive commented Dec 19, 2024

Description

  • allow less than 1 gwei for some chains
  • use minimum bump fee value

Related Issue

Resolve #15816
Resolve #15890

Screenshots:

obrazek
obrazek

@adderpositive adderpositive added feature Product related issue visible for end user connect Connect API related (ie. fee calculation) EVM Issues related to networks based on Ethereum Virtual Machine labels Dec 19, 2024
@adderpositive adderpositive self-assigned this Dec 19, 2024
@adderpositive adderpositive force-pushed the feat/allow-lower-gas-price branch from ae47073 to 4a4c13a Compare December 20, 2024 14:29
Copy link

github-actions bot commented Dec 20, 2024

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 21
  • More info

Learn more about 𝝠 Expo Github Action

@adderpositive adderpositive force-pushed the feat/network-display-symbol branch 4 times, most recently from eef8bc2 to 9e3527a Compare December 22, 2024 09:06
@adderpositive adderpositive force-pushed the feat/allow-lower-gas-price branch from 4a4c13a to 9e3527a Compare December 22, 2024 09:16
@adderpositive adderpositive reopened this Dec 22, 2024
@adderpositive adderpositive force-pushed the feat/allow-lower-gas-price branch 2 times, most recently from 74cfd2b to c22ce2f Compare December 22, 2024 20:06
Base automatically changed from feat/network-display-symbol to develop December 25, 2024 16:02
@tomasklim tomasklim force-pushed the feat/allow-lower-gas-price branch 3 times, most recently from 489029b to 9725b52 Compare December 27, 2024 10:57
@tomasklim tomasklim marked this pull request as ready for review December 27, 2024 10:57
Copy link
Member

@tomasklim tomasklim left a comment

Choose a reason for hiding this comment

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

LGTM, works perfectly

@tomasklim tomasklim force-pushed the feat/allow-lower-gas-price branch from 9725b52 to 7e08d1e Compare December 29, 2024 14:55
@@ -140,9 +140,8 @@ export const decodeEthereumDefinition = (
*/
export const ethereumNetworkInfoFromDefinition = (
definition: EthereumNetworkDefinitionDecoded,
): EthereumNetworkInfo => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

on line 139, comment does not match anymore. nitpick

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I don't like the EthereumNetworkInfoDefinition type name. This utility is called ethereumNetworkInfoFromDefinition (as it would expect EthereumNetworkInfoDefinition as argument but it actually returns it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to EthereumNetworkInfoDefinitionValues.

@tomasklim
Copy link
Member

/rebase

Copy link

github-actions bot commented Jan 2, 2025

@trezor-ci trezor-ci force-pushed the feat/allow-lower-gas-price branch from 0b628a5 to dcc62ac Compare January 2, 2025 12:22
@tomasklim tomasklim merged commit ae1d538 into develop Jan 2, 2025
72 of 74 checks passed
@tomasklim tomasklim deleted the feat/allow-lower-gas-price branch January 2, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connect Connect API related (ie. fee calculation) EVM Issues related to networks based on Ethereum Virtual Machine feature Product related issue visible for end user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make bump gas price minimum configurable, now it is 1gwei Allow gas price lower than 1gwei for L2 chains
3 participants