EatTheBlocks Forum

Can some one help me I am getting error when running flashloan

I am gettting this error when running the Flasnloan app I have deployed the contracts I hard coded the address of the contract (not sure if that was the right value) but aftter i started running it every once in a while I am getting the error bellow. then it goes back to checking prices. Some help please

Warning: 0x6b175474e89094c44da98b954eedeac495271d0f is not checksummed.
(node:7228) UnhandledPromiseRejectionWarning: Error: failed to meet quorum (method=“call”, params={“transaction”:{“to”:“0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11”,“data”:“0x0902f1ac”},
“blockTag”:“latest”}, results=[{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},
“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},
“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”}
,"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,“connection”:{“url”:“https://mainnet.infura.io/v3/84842078b09946638c03157f83405213”},
“_nextId”:43,“apiKey”:“84842078b09946638c03157f83405213”,“projectId”:“84842078b09946638c03157f83405213”,“projectSecret”:null},“weight”:1,“start”:1623683575704,
“result”:“0x0000000000000000000000000000000000000000002308737bc56c57da8f085100000000000000000000000000000000000000000000038278bea22bd84e0e310000000000000000000000000000000000000000000000000000000060c771e0”},
{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},
“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":12633305,"_lastBlockNumber":-2,
“_pollingInterval”:4000,"_fastQueryDate":1623683575704,“connection”:{“url”:“https://cloudflare-eth.com/"},"_nextId":44,"_internalBlockNumber":{},"_fastBlockNumber":12633305,"_fastBlockNumberPromise":{}},“weight”:1,“start”:1623683575704,“result”:“0x000000000000000000000000000000000000000000230894777875c175e02a72000000000000000000000000000000000000000000000382756e32f526c1b3af0000000000000000000000000000000000000000000000000000000060c7717c”},{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,“connection”:{“url”:“https://eth-mainnet.alchemyapi.io/jsonrpc/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC”},"_nextId":43,“apiKey”:"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},“weight”:1,“start”:1623683576497,“result”:“0x000000000000000000000000000000000000000000230894777875c175e02a72000000000000000000000000000000000000000000000382756e32f526c1b3af0000000000000000000000000000000000000000000000000000000060c7717c”},{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":12633305,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1623683575412,“baseUrl”:“https://api.etherscan.io”,“apiKey”:“9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB”,"_internalBlockNumber":{},"_fastBlockNumber":12633305,"_fastBlockNumberPromise":{}},“weight”:1,“start”:1623683576498,“result”:"0x00000000000000000000000000000000000000000023086ee000fcbc7a41142b00000000000000000000000000000000000000000000038279352e1844c2f2310000000000000000000000000000000000000000000000000000000060c771f4”}], provider={"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":12633305,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1623683575704,“providerConfigs”:[{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,“connection”:{“url”:“https://mainnet.infura.io/v3/84842078b09946638c03157f83405213"},"_nextId":43,“apiKey”:“84842078b09946638c03157f83405213”,“projectId”:“84842078b09946638c03157f83405213”,“projectSecret”:null},“weight”:1,“stallTimeout”:750,“priority”:1},{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":12633305,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1623683575412,“baseUrl”:“https://api.etherscan.io”,“apiKey”:“9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB”,"_internalBlockNumber":{},"_fastBlockNumber":12633305,"_fastBlockNumberPromise":{}},“weight”:1,“stallTimeout”:750,“priority”:1},{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,“connection”:{“url”:“https://eth-mainnet.alchemyapi.io/jsonrpc/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC”},"_nextId":43,“apiKey”:"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},“weight”:1,“stallTimeout”:750,“priority”:1},{“provider”:{"_isProvider":true,"_events":[],"_emitted":{“block”:-2},“formatter”:{“formats”:{“transaction”:{},“transactionRequest”:{},“receiptLog”:{},“receipt”:{},“block”:{},“blockWithTransactions”:{},“filter”:{},“filterLog”:{}}},“anyNetwork”:false,"_network":{“name”:“homestead”,“chainId”:1,“ensAddress”:“0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e”},"_maxInternalBlockNumber":12633305,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1623683575704,“connection”:{“url”:“https://cloudflare-eth.com/”},"_nextId":44,"_internalBlockNumber":{},"_fastBlockNumber":12633305,"_fastBlockNumberPromise":{}},“weight”:1,“stallTimeout”:750,“priority”:1}],“quorum”:2,"_highestBlockNumber":12633305,"_internalBlockNumber":{},"_fastBlockNumber":12633305,"_fastBlockNumberPromise”:{}}, code=SERVER_ERROR, version=providers/5.0.2)
at Logger.makeError (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\logger\lib\index.js:179:21)
at Logger.throwError (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\logger\lib\index.js:188:20)
at FallbackProvider. (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\providers\lib\fallback-provider.js:626:54)
at step (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\providers\lib\fallback-provider.js:46:23)
at Object.next (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\providers\lib\fallback-provider.js:27:53)
at fulfilled (D:\newTradingRepo\Arbitrage4\node_modules@ethersproject\providers\lib\fallback-provider.js:18:58)
(Use node --trace-warnings ... to show where the warning was created)
(node:7228) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7228) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This is a problem with the uniswap Sdk It uses 3 providers to supply it information. Well what happened here is that 2 had the right answer and one didn’t. The way they have it set is all must be the same reply or you get a quorum error.

@Batman is there something I can do to fix it or do I just let it go and deploy the app to heroku

@Batman is there something I can do to fix it or do I just let it go and deploy the app to heroku

you can look at ethers.js documentation and setup your own provider links.