Awesome repo, but when the bot finds, and tries to liquidate an opportunity I get the following error.
==========================
Error performing liquidation: <ref 1> Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT","method":"estimateGas","transaction":{"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"to":"0x107CF546fA93894781Fe6568CF55604a0658314e","data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","type":2,"accessList":null}}, tx={"data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","to":{},"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","type":2,"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.5.0)
at Logger.makeError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:199:21)
at Logger.throwError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:208:20)
at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/abstract-signer/lib/index.js:365:47
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 7) {
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
error: Error: cannot estimate gas; transaction may fail or may require manual gas limit (method="estimateGas", transaction={"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"to":"0x107CF546fA93894781Fe6568CF55604a0658314e","data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","type":2,"accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.1)
at Logger.makeError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:199:21)
at Logger.throwError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:208:20)
at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:652:52
at Array.forEach ()
at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:632:61
at step (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:48:23)
at Object.next (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
at step (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:33:139)
at Object.next (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
at fulfilled (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:20:58) {
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
method: 'estimateGas',
transaction: {
from: '0xfF4d2A47E9883432456b47fE09a663c56aBF39de',
maxPriorityFeePerGas: [BigNumber],
maxFeePerGas: [BigNumber],
to: '0x107CF546fA93894781Fe6568CF55604a0658314e',
data: '0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15',
type: 2,
accessList: null
}
},
tx: {
data: '0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15',
to: Promise { '0x107CF546fA93894781Fe6568CF55604a0658314e' },
from: '0xfF4d2A47E9883432456b47fE09a663c56aBF39de',
type: 2,
maxFeePerGas: BigNumber { _hex: '0x0660dc72c6', _isBigNumber: true },
maxPriorityFeePerGas: BigNumber { _hex: '0x9502f900', _isBigNumber: true },
nonce: Promise { 20 },
gasLimit: Promise { [Circular 1] },
chainId: Promise { 1 }
}
Any help is greatly appreciated, thanks.
Awesome repo, but when the bot finds, and tries to liquidate an opportunity I get the following error.
========================== Error performing liquidation: <ref 1> Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT","method":"estimateGas","transaction":{"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"to":"0x107CF546fA93894781Fe6568CF55604a0658314e","data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","type":2,"accessList":null}}, tx={"data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","to":{},"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","type":2,"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.5.0) at Logger.makeError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:199:21) at Logger.throwError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:208:20) at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/abstract-signer/lib/index.js:365:47 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Promise.all (index 7) { reason: 'cannot estimate gas; transaction may fail or may require manual gas limit', code: 'UNPREDICTABLE_GAS_LIMIT', error: Error: cannot estimate gas; transaction may fail or may require manual gas limit (method="estimateGas", transaction={"from":"0xfF4d2A47E9883432456b47fE09a663c56aBF39de","maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x0660dc72c6"},"to":"0x107CF546fA93894781Fe6568CF55604a0658314e","data":"0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15","type":2,"accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.1) at Logger.makeError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:199:21) at Logger.throwError (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/logger/lib/index.js:208:20) at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:652:52 at Array.forEach ()
at /Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:632:61
at step (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:48:23)
at Object.next (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
at step (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:33:139)
at Object.next (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
at fulfilled (/Users/kr/joe-liquidator/bot/node_modules/@ethersproject/providers/lib/fallback-provider.js:20:58) {
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
method: 'estimateGas',
transaction: {
from: '0xfF4d2A47E9883432456b47fE09a663c56aBF39de',
maxPriorityFeePerGas: [BigNumber],
maxFeePerGas: [BigNumber],
to: '0x107CF546fA93894781Fe6568CF55604a0658314e',
data: '0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15',
type: 2,
accessList: null
}
},
tx: {
data: '0xca5ce2ec00000000000000000000000000085a6b85b15e7a6bc9f4f4e937ba1709d5fc57000000000000000000000000c22f01ddc8010ee05574028528614634684ec29e000000000000000000000000585e7bc75089ed111b656faa7aeb1104f5b96c15',
to: Promise { '0x107CF546fA93894781Fe6568CF55604a0658314e' },
from: '0xfF4d2A47E9883432456b47fE09a663c56aBF39de',
type: 2,
maxFeePerGas: BigNumber { _hex: '0x0660dc72c6', _isBigNumber: true },
maxPriorityFeePerGas: BigNumber { _hex: '0x9502f900', _isBigNumber: true },
nonce: Promise { 20 },
gasLimit: Promise { [Circular 1] },
chainId: Promise { 1 }
}
Any help is greatly appreciated, thanks.