See https://github.com/api3dao/tasks/issues/85#issuecomment-1742776927
Recently polygon-testnet started including system transactions in its blocks that have big number chain IDs. ethers treats chain IDs as a Number, which causes it to throw while trying to process said transactions. The latestBlockPercentileGasPrice gas price strategy processes individual transactions from past blocks, which means it would also be affected by this.
Two possible solutions:
- Remove
latestBlockPercentileGasPrice altogether
- Wrap the ethers function to preprocess transactions so that ethers doesn't see this big number chain IDs (the solution used to address https://github.com/api3dao/tasks/issues/85)