The heuristic to subtract 1 million gas to estimate max counts is OK #932
Closed
PaulRBerg
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Thank you for the research on this subject. This is a very good summary tbh. 👏👏👏 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I said here that I will follow up on the cross-chain gas usage issue.
My Input
It turns out that the heuristic introduced by @smol-ninja in #908, i.e. to subtract 1 million gas from the block gas limit, accounts for the whole gamut of cross-chain differences in Minimum Transaction Gas. So we can keep it like that.
I did some comprehensive research today, and it appears that:
The only exception to point no. 2 is zkSync, which provides gas refunds. However, this is not a problem because it means that we will overestimate, not underestimate. In other words, our estimated max counts will be more than enough to cover the actual execution cost on zkSync.
Gas Fee Models
References
cc @sablier-labs/solidity
Beta Was this translation helpful? Give feedback.
All reactions