You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes there is a discrepancy when using eth_estimateGas for an ERC-20 token transfer on Matic Amoy. This happens rarely, although it has been reproducible.
The expected gas estimate should be 45415, but sometimes our response returns 45252 instead. This issue appears to be specific to Bor, as the estimate provided by Erigon is more accurate (since the related eth_call needs 45252 gas).
System information
Bor client version: 0xpolygon/bor:1.5.5
Environment: Polygon Amoy
Additional Information: Observed small differences in gas estimates from Bor vs. Erigon
Reproduction Steps
Use the following curl request to reproduce the issue:
Hi @pgtodoroff
Thanks for the detailed report! I’d like to clarify a few points:
The report mentions an expected gas estimate of 45415, but also says Erigon is more accurate since the related eth_call needs 45252 gas. Could you please confirm whether the intended expected gas is 45415 or if 45252 is what you’re expecting?
Do you have a pushed transaction that shows the actual expected gas? This would help confirm which value is correct.
I tried to find similar transactions, and they appear to have consumed 45035 gas. Here are the transaction links for reference:
Overview of the problem
Sometimes there is a discrepancy when using eth_estimateGas for an ERC-20 token transfer on Matic Amoy. This happens rarely, although it has been reproducible.
The expected gas estimate should be 45415, but sometimes our response returns 45252 instead. This issue appears to be specific to Bor, as the estimate provided by Erigon is more accurate (since the related eth_call needs 45252 gas).
System information
Bor client version: 0xpolygon/bor:1.5.5
Environment: Polygon Amoy
Additional Information: Observed small differences in gas estimates from Bor vs. Erigon
Reproduction Steps
Observe the returned gas estimate.
Compare with an Erigon node and verify the difference.
The text was updated successfully, but these errors were encountered: