I am having an issue when running the project with npm run start. The bot is able to check the first price but then crashes. Any help is appreciated!
Listening on 5000
Checking prices...
┌─────────┬─────────────┬──────────────┬──────────────┬────────────────────────┬────────────────────────┬───────────────────────┬─────────────────────────────┐
│ (index) │ Input Token │ Output Token │ Input Amount │ Uniswap Return │ Kyber Expected Rate │ Kyber Min Return │ Timestamp │
├─────────┼─────────────┼──────────────┼──────────────┼────────────────────────┼────────────────────────┼───────────────────────┼─────────────────────────────┤
│ 0 │ 'ETH' │ 'MKR' │ '1' │ '2.260300770597604295' │ '2.260080079622844114' │ '2.19227767723415879' │ '2022-09-14T19:50:39-05:00' │
└─────────┴─────────────┴──────────────┴──────────────┴────────────────────────┴────────────────────────┴───────────────────────┴─────────────────────────────┘
Error: Returned error: execution reverted
at Object.ErrorResponse (/Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-core-helpers/src/errors.js:29:16)
at /Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-core-requestmanager/src/index.js:140:36
at XMLHttpRequest.request.onreadystatechange (/Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-providers-http/src/index.js:96:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage. (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
I am having an issue when running the project with npm run start. The bot is able to check the first price but then crashes. Any help is appreciated! Listening on 5000 Checking prices... ┌─────────┬─────────────┬──────────────┬──────────────┬────────────────────────┬────────────────────────┬───────────────────────┬─────────────────────────────┐ │ (index) │ Input Token │ Output Token │ Input Amount │ Uniswap Return │ Kyber Expected Rate │ Kyber Min Return │ Timestamp │ ├─────────┼─────────────┼──────────────┼──────────────┼────────────────────────┼────────────────────────┼───────────────────────┼─────────────────────────────┤ │ 0 │ 'ETH' │ 'MKR' │ '1' │ '2.260300770597604295' │ '2.260080079622844114' │ '2.19227767723415879' │ '2022-09-14T19:50:39-05:00' │ └─────────┴─────────────┴──────────────┴──────────────┴────────────────────────┴────────────────────────┴───────────────────────┴─────────────────────────────┘ Error: Returned error: execution reverted at Object.ErrorResponse (/Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-core-helpers/src/errors.js:29:16) at /Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-core-requestmanager/src/index.js:140:36 at XMLHttpRequest.request.onreadystatechange (/Users/lukapiplica/Desktop/price-bot-master/node_modules/web3-providers-http/src/index.js:96:13) at XMLHttpRequestEventTarget.dispatchEvent (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13) at XMLHttpRequest._setReadyState (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:219:8) at XMLHttpRequest._onHttpResponseEnd (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:345:8) at IncomingMessage. (/Users/lukapiplica/Desktop/price-bot-master/node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)