GingerBread icon indicating copy to clipboard operation
GingerBread copied to clipboard

I got this issue, can you tell me how to fix it?

Open stvle131 opened this issue 2 years ago • 2 comments

Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getPair(address,address)", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.6.0) at Logger.makeError (H:\abr\GingerBread\node_modules@ethersproject\logger\lib\index.js:233:21) at Logger.throwError (H:\abr\GingerBread\node_modules@ethersproject\logger\lib\index.js:242:20) at Interface.decodeFunctionResult (H:\abr\GingerBread\node_modules@ethersproject\abi\lib\interface.js:382:23) at Contract. (H:\abr\GingerBread\node_modules@ethersproject\contracts\lib\index.js:395:56) at step (H:\abr\GingerBread\node_modules@ethersproject\contracts\lib\index.js:48:23) at Object.next (H:\abr\GingerBread\node_modules@ethersproject\contracts\lib\index.js:29:53) at fulfilled (H:\abr\GingerBread\node_modules@ethersproject\contracts\lib\index.js:20:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: null, code: 'CALL_EXCEPTION', method: 'getPair(address,address)', errorArgs: null, errorName: null, errorSignature: null,

stvle131 avatar May 10 '22 06:05 stvle131

Sure man. So according to Ethers docs, "This error occurs when a call or transaction is used to interact with the blockchain reverts (via revert, require, et cetera)". So there needs to be proper handling of errors in the code. But if you view the tx hash logged on the console alongside this error, or you check the blockchain for the transactions, the error should be similar to Pangolin: insufficient_liquidity. My hypothesis for this is that other bots are faster and take advantage of the opportunity before Gingerbread bakes.

JO-OLADEJI avatar May 11 '22 02:05 JO-OLADEJI

execution reverted: Pangolin: INSUFFICIENT_LIQUIDITY yes, i tried the node from chainstack but still slower than other bot, by the way, your code so friendly and helped me to understand a lot.

Hope you can upgrade it with so we can launch with the speed of light! thanks

stvle131 avatar May 11 '22 11:05 stvle131