yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
303 stars 192 forks source link

Cannot read properties of undefined #13

Closed CecoSvidovski closed 2 years ago

CecoSvidovski commented 2 years ago

The script runs normally for some time and then it crashes showing this:

TypeError: Cannot read properties of undefined (reading 'status')
    at E:\poly-flashloan-bot-main\dist\inchPrice.js:81:33
    at Generator.next (<anonymous>)
    at fulfilled (E:\poly-flashloan-bot-main\dist\inchPrice.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
CecoSvidovski commented 2 years ago

Fixed it and made a pull request

The script runs normally for some time and then it crashes showing this:

TypeError: Cannot read properties of undefined (reading 'status')
    at E:\poly-flashloan-bot-main\dist\inchPrice.js:81:33
    at Generator.next (<anonymous>)
    at fulfilled (E:\poly-flashloan-bot-main\dist\inchPrice.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
yuichiroaoki commented 2 years ago

Fixed it and made a pull request

The script runs normally for some time and then it crashes showing this:

TypeError: Cannot read properties of undefined (reading 'status')
    at E:\poly-flashloan-bot-main\dist\inchPrice.js:81:33
    at Generator.next (<anonymous>)
    at fulfilled (E:\poly-flashloan-bot-main\dist\inchPrice.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Thank you for fixing the bug. Merged this pull request.