extension icon indicating copy to clipboard operation
extension copied to clipboard

Utilise advanced BlockNative gas esimations for mainnet

Open greg-nagy opened this issue 2 years ago • 1 comments

Context

BlockNative gives us an estimation of gas prices for the next 5 blocks but we are not using that information anywhere.

In the makeBlockEstimate we use only the first element with the confidence that we are looking for. It's practical because it's the price of the next block, but we also have the estimation already there for the next 5 blocks

  • The solution would use the estimates for the next 3 blocks. (These are virtually error-free based on the bn articles)
  • The lookup would happen based on the current block height.
  • The changes in the gas fee would be represented in the UI + some animation to make it easier to understand
  • The polling period for gas fetch should be 30s

Value of the proposal

In highly volatile market conditions the base gas fee could change quite a bit, and this would help us to always show our most informed guess for the gas fee without spamming the Blocknative api.

Priority

Most of the time our current gas estimation is good enough, so this is a nice to have feature.

greg-nagy avatar May 05 '22 15:05 greg-nagy

I don't believe we need to do this for solving the high network fee estimations 80%-90% of the way! We'll see.

henryboldi avatar May 09 '22 15:05 henryboldi

This has been completed ✅

0xDaedalus avatar Feb 10 '23 21:02 0xDaedalus