alpha-wallet-ios icon indicating copy to clipboard operation
alpha-wallet-ios copied to clipboard

EIP1559 implementation #4138

Open oa-s opened this issue 3 years ago • 4 comments

Closes #4138

oa-s avatar Aug 16 '22 14:08 oa-s

@hboon need your help to check if function EIP1559FeeOracle.eip1559FeeEstimates() works as needed.

oa-s avatar Aug 16 '22 14:08 oa-s

@oa-s you need to push your web3swift fork.

hboon avatar Aug 17 '22 03:08 hboon

Do we check or hardcode if a chain supports EIP1559?

nope, in case chain when doesnt support EIP1559 the fee history request will return an error

oa-s avatar Aug 17 '22 06:08 oa-s

continue after https://github.com/AlphaWallet/alpha-wallet-ios/pull/5246

oa-s avatar Sep 01 '22 13:09 oa-s

@oa-s don't forget this

hboon avatar Oct 12 '22 03:10 hboon

@oa-s should finish up this

hboon avatar Nov 30 '22 02:11 hboon

should finish up this

here we got an issue with calculating estimate values, have no idea how to fix it

oa-s avatar Nov 30 '22 07:11 oa-s

Would you help rebase and point out where it is? Can help to see too, if you like

hboon avatar Nov 30 '22 08:11 hboon

Would you help rebase and point out where it is? Can help to see too, if you like

yes, sure

oa-s avatar Nov 30 '22 08:11 oa-s

@hboon bump

oa-s avatar Dec 01 '22 10:12 oa-s

@oa-s ah. Should I look at any particular place?

hboon avatar Dec 01 '22 11:12 hboon

@oa-s okie, I'll take a look. Thanks!

hboon avatar Dec 02 '22 03:12 hboon

@hboon any success with this issue?

oa-s avatar Dec 13 '22 09:12 oa-s

@oa-s sorry, stuck with some other work, will come back to this :)

hboon avatar Dec 13 '22 10:12 hboon

@hboon i will push after rebase, fixed signing tx, and some other issues, still have issue with estimation coputation

oa-s avatar Jan 23 '23 14:01 oa-s

@oa-s thanks. Sorry, haven't come to look at this yet. I will, but I will let you know before I do in case you work on this.

hboon avatar Jan 25 '23 00:01 hboon

@oa-s thanks. Sorry, haven't come to look at this yet. I will, but I will let you know before I do in case you work on this.

yes, sure

oa-s avatar Jan 25 '23 17:01 oa-s

@oa-s what else is left for this PR?

hboon avatar Mar 08 '23 00:03 hboon

tweak changing fees when sending a tx

oa-s avatar Mar 08 '23 09:03 oa-s

  • handling fees updates

oa-s avatar Mar 08 '23 09:03 oa-s

@hboon could u please take a look at editing gas fee, not quite sure how to done it

oa-s avatar Apr 03 '23 07:04 oa-s

@oa-s OK, I'll check the next 2 days. Working on something at the moment. Can you help paste a permalink to show where to look (if you know already)?

hboon avatar Apr 03 '23 08:04 hboon

@oa-s OK, I'll check the next 2 days. Working on something at the moment. Can you help paste a permalink to show where to look (if you know already)?

sure, will do

oa-s avatar Apr 03 '23 09:04 oa-s

Getting a warning after I rebase master (not pushed here):

[R.swift] project.pbxproj is internally inconsistent.

Probably a bad merge with the project file

hboon avatar Apr 05 '23 02:04 hboon

Pushed 2 commits that fixes the project file. They can be squashed into your commit(s)

hboon avatar Apr 07 '23 10:04 hboon

Just notes:

Sent an EIP-1559 transaction on Goerli https://goerli.etherscan.io/tx/0x6fbe4f273f7c0ef419e8e86ca7f3c6e5d38f85bbe06cb5a4dd7a1fb03bbdcaab

Was successful and gas price = 284.x gwei, much higher than a transaction from 2 days ago https://goerli.etherscan.io/tx/0x598d15adc5cd894ab82b2c42cfca2516d1f39a365cea1110c83bf2e2dc4ba9b1

But seems inline with a transaction around the same period (281 gwei) https://goerli.etherscan.io/tx/0xe17bb1df31f254db3d1336dd5312ebfc5b49b8b1160852330498610b99507099

hboon avatar Apr 07 '23 10:04 hboon

I am finishing with applying updates to ui, will test it more, and we will be able to finish it

oa-s avatar Apr 07 '23 11:04 oa-s

What about estimates, do they seem correct? Sometimes i was able to catch zero estimates, on mainnet. Looks like that happened because of zero base fee. Not sure on what step it setted to zero

oa-s avatar Apr 07 '23 11:04 oa-s

  • [ ] Looks like TransactionConfigurator isn't destroyed after TransactionConfirmationCoordinator is destroyed by cancelling the transaction confirmation actionsheet

  • [ ] With EIP-1559 transactions, we still need the old "Gas Limit". So 2 sliders for pre-EIP-1559 and 3 sliders for EIP-1559

Screenshot 2023-04-07 at 7 24 26 PM

hboon avatar Apr 07 '23 11:04 hboon

What about estimates, do they seem correct? Sometimes i was able to catch zero estimates, on mainnet. Looks like that happened because of zero base fee. Not sure on what step it setted to zero

I'll play with it a bit more and look at the estimation function. No idea how it's supposed to work, but I'll check

hboon avatar Apr 07 '23 11:04 hboon