2.5 Gwei maxPriorityFeePerGas does not seem to be sufficient for Polygon network #2704
Replies: 3 comments 7 replies
-
The focus of ethers is Ethereum, but in v6 more effort is being made to more easily address other chains with more complex differences. There isn’t really much that can be done automatically, since there is no endpoint to get a meaningful priority fee. If you wished to sub-class the Provider (or Signer), you could override the getFeeData method. On Ethereum it will likely be reduced in the next minor bump (v5.6) to 1.5, as 2.5 was originally targeted for uncle risk + MEV risk, but it seems like the risk cost with MEV has come down with the popularity of bundles. I’m curious why the fee market in polygon is so lop-sided. Is that a consequence of the blocktime? Block reward? Protocol specifications? |
Beta Was this translation helpful? Give feedback.
-
@ricmoo Thanks for all the hard work and your effort in making ethers compatible with other chains :) I'm not 100% sure, but I think this is a consequence from Polygon setting up the minimum validator fee to be 30 gwei. |
Beta Was this translation helpful? Give feedback.
-
I am bumping into this issue as well. I try to run an NFT airdrop function on server side and having a hard time to get this right. It seems that the defaults in const mintTx = await contract.functions.mint(amount, airdropWallet, {
value: 0 // => what values should be passed to make it compatible with Polygon?
}) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I see
maxPriorityFeePerGas
hardcoded as2.5 Gwei
, this might work perfectly for the Ethereum network but while using ethersJs on Polygon network it takes sometimes days for transactions to go through withmaxPriorityFeePerGas
as2.5 Gwei
. As of today, Polygon is havingbase fee
of around0 Gwei
andmaxPriorityFeePerGas
of60 Gwei
:(ethers.js/packages/abstract-provider/src.ts/index.ts
Line 249 in b145898
Beta Was this translation helpful? Give feedback.
All reactions