simple-arbitrage icon indicating copy to clipboard operation
simple-arbitrage copied to clipboard

Gas estimation failed

Open konstiantyn opened this issue 4 years ago • 8 comments

I'm getting this error. I changed serval ether.js version. But same error. 6A37CDE4-BE97-11EB-8CA0-8CEC4B55F049

konstiantyn avatar May 27 '21 03:05 konstiantyn

I have same error , I guess ; No problem with any code, just no suitable Opportunity found.

ozgurk78 avatar Jun 13 '21 18:06 ozgurk78

same issue. Any solutions?

KidL84 avatar Jan 25 '22 15:01 KidL84

I'm getting the same issue. When I dig into the error details I'm seeing code: 'UNPREDICTABLE_GAS_LIMIT', returned by the server. Any ideas?

petenilson avatar Jul 01 '22 07:07 petenilson

@petenilson which chain are you running it on? Getting same error on different chain.

red-saint-nft avatar Jul 03 '22 07:07 red-saint-nft

@petenilson which chain are you running it on? Getting same error on different chain.

Ethereum main net

petenilson avatar Jul 03 '22 07:07 petenilson

same issue 'UNPREDICTABLE_GAS_LIMIT', how can I fix it?

dariobuzz avatar Nov 23 '22 15:11 dariobuzz

same issue here, any solution? Can we skip gas estimation?

ss-zheng avatar Feb 23 '23 05:02 ss-zheng

same issue here, any solution? Can we skip gas estimation?

In Theory yes, you could replace await this.bundleExecutorContract.provider.estimateGas( { ...transaction, from: this.executorWallet.address }) With a gas number which you find to be the average of a transaction. It sends gas limit double the number you put in. This is far from optimal to use but it's technically a go around. If you don't want to use static gas, then you'd have to see if you can change the ethers estimation interaction. Or change it with another lib. I haven't found the solution yet but I've had this for a couple hours now so.

RH-Adv1c3 avatar May 09 '24 16:05 RH-Adv1c3