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

Add support for Ethereum EIP 1559 #3882

Open
matejcik opened this issue Jun 10, 2021 · 14 comments
Open

Add support for Ethereum EIP 1559 #3882

matejcik opened this issue Jun 10, 2021 · 14 comments
Assignees
Labels
altcoins not related to bitcoin EVM Issues related to networks based on Ethereum Virtual Machine feature Product related issue visible for end user

Comments

@matejcik
Copy link

depends on trezor/trezor-firmware#1604, PR trezor/trezor-firmware#1653

Is your feature request related to a problem? Please describe.
The upcoming Ethereum London hardfork changes fee calculations in a way that is (supposedly) both significantly more favorable to users, and makes it easier to reliably calculate fees for wallets.

Each block has a base fee per gas that a transaction must pay. The fee rate is adjusted per block based on network congestion, similar to Bitcoin difficulty.
The user sets two limits: maximum total fee rate and maximum priority fee rate. From the user's POV this breaks down as follows:

  • If your total fee rate is lower than block base rate, you don't get included in the block. Otherwise:
  • If your priority rate is lower than block base rate, then block base rate is your final cost (up to your total fee rate).
  • Otherwise, your priority rate is your final cost.

It's unclear to me if it makes sense to set the priority rate different from the total fee rate.

See https://eips.ethereum.org/EIPS/eip-1559 for details

Describe the solution you'd like
Suite should fetch the base rate and set the total fee rate and priority fee rate accordingly. Firmware will accept new fields to provide the new values.

@brad-decker
Copy link

@matejcik

Just to clarify:

maxFeePerGas - the maximum amount you will pay per gas, inclusive of your priority fee and the base fee of the block.
maxPriorityFeePerGas - The maximum tip that will be paid to the miner to prioritize your transaction above others.

a user could set a really high maxFeePerGas, to ensure that no matter how congested the network their transaction can still be considered. They could also set a maxPriorityFeePerGas of 10 as an example.

So if the block baseFee is 50gwei, the user sets their maxFeePerGas to 100 and maxPriorityFeePerGas at 10 the user will pay 60 gwei per gas (50 for the baseFee and 10 for the tip)

If the network gets suddenly jammed up with txs, the baseFee might rise to 94gwei lets say, in this case the user will pay 100gwei per gas (94 base fee, and then 6 tip to the miner).

--- coincidently after the hard fork gasPrice is inferred as maxFeePerGas for backwards compatibility, as maxPriorityFeePerGas is ♾️

so in the first scenario above where the gasPrice is set as 100 then the user will pay 100 per gas, with 50 being burned and 50 going to the miner as a tip.

@HeroHann
Copy link

HeroHann commented Aug 6, 2021

So I am just a costumer / user, but what I get from the open requests regarding EIP-1559 is, that Trezor does NOT support the optimal fee usage, but still relies on the backward compatibility right? I mean EIP-1559 was known for some time. Any ETA on this?

@trezor trezor deleted a comment Aug 16, 2021
@mohamedmansour
Copy link

mohamedmansour commented Sep 4, 2021

Hello! What is still required for EIP-1559 integration into Trezor wallets? Is development help needed since trezor/trezor-firmware#1604 is merged. If there is a detailed plan on what needs to be done, I am willing to spend couple of sprints to develop it

@mysliwiec-tech
Copy link

@jrm2194
Copy link

jrm2194 commented Sep 16, 2021

@mysliwiec-tech Also available for Trezor One? Doesn't seem so :/

@mysliwiec-tech
Copy link

@mysliwiec-tech Also available for Trezor One? Doesn't seem so :/

Seems like unfortunately not. Here's why: https://twitter.com/FrederikBolding/status/1438580809582194689?s=19

@sm3434
Copy link

sm3434 commented Sep 20, 2021

So when can we expect support for Trezor one gusys

@facundomedica
Copy link

Hello! This is affecting all of Trezor One+Metamask users, which I think we are quite a lot of people.
Is there any ETA or guide on how to transact in the meantime? Thank you!

@facundomedica
Copy link

A workaround can be found here: https://twitter.com/benlakoff/status/1441174886114680833
Basically install an older version of Metamask (9.8.4) in Firefox and that's it! Happy transacting while waiting 😄

@facundomedica
Copy link

@matejcik I think this issue should have a high priority tag given that Trezor One basically stopped being compatible with the most used wallet (Metamask).

@neokry
Copy link

neokry commented Sep 30, 2021

This issue breaks metamask support for trezor one. Seriously need a fix for this soon.

@trezor trezor deleted a comment from ndroo Oct 1, 2021
@trezor trezor deleted a comment from ndroo Oct 1, 2021
@trezor trezor deleted a comment from angyts Oct 1, 2021
@trezor trezor deleted a comment from angyts Oct 1, 2021
@trezor trezor deleted a comment from wminshew Oct 1, 2021
@trezor trezor deleted a comment from jrm2194 Oct 1, 2021
@trezor trezor deleted a comment from angyts Oct 1, 2021
@gliinbox
Copy link

gliinbox commented Oct 3, 2021

This issue breaks metamask support for trezor one. Seriously need a fix for this soon.

Hi Trezor team, seems like alot of comments were deleted yesterday - curious, what was the reason?

I imagine there's a large number of Trezor one users, and metamask/ eth is probably the #1 use case outside of cold storage. I'm curious if this is seen as important for Trezor, if not, why? This way users can prepare for the future by looking at alternatives ...

thanks ya'll - still think ya'll the best hw co out there.

@monomesa
Copy link

monomesa commented Oct 3, 2021

This issue breaks metamask support for trezor one. Seriously need a fix for this soon.

Hi Trezor team, seems like alot of comments were deleted yesterday - curious, what was the reason?

I imagine there's a large number of Trezor one users, and metamask/ eth is probably the #1 use case outside of cold storage. I'm curious if this is seen as important for Trezor, if not, why? This way users can prepare for the future by looking at alternatives ...

thanks ya'll - still think ya'll the best hw co out there.

It will be good to have clarity here!

@alex-jerechinsky alex-jerechinsky moved this from Inbox 📥 to Product in Suite · Backlog 🗂 Oct 4, 2021
@prusnak
Copy link
Member

prusnak commented Oct 6, 2021

@jrm2194 @sm3434 @facundomedica @neokry @gliinbox @monomesa
We are investigating EIP-1559 for Trezor Model One in trezor/trezor-firmware#1834

@trezor trezor locked as too heated and limited conversation to collaborators Oct 6, 2021
@alex-jerechinsky alex-jerechinsky added this to 📥 Inbox in Backlog 🗂 via automation Oct 21, 2021
@alex-jerechinsky alex-jerechinsky moved this from 📥 Inbox to 📽 Product in Backlog 🗂 Oct 21, 2021
@alex-jerechinsky alex-jerechinsky removed this from 📽 Product in Suite · Backlog 🗂 Oct 21, 2021
@hynek-jina hynek-jina added the feature Product related issue visible for end user label Dec 16, 2021
@hynek-jina hynek-jina removed the MEDIUM label Jun 8, 2022
@hynek-jina hynek-jina added the altcoins not related to bitcoin label Jul 22, 2022
@sime sime added the EVM Issues related to networks based on Ethereum Virtual Machine label May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
altcoins not related to bitcoin EVM Issues related to networks based on Ethereum Virtual Machine feature Product related issue visible for end user
Projects
Status: No status
Backlog 🗂
📽 Product
Development

No branches or pull requests