yuichiroaoki / poly-flashloan-bot

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

Testing - Error encountered during contract execution [execution reverted] #97

Closed JulioSarda closed 2 years ago

JulioSarda commented 2 years ago

Hello !! I was running tests.

Method: 0x0cdabeba

Contract: 0x33d8d437796bd43bdccc6740c585f4a15d1070b7

Error: Warning! Error encountered during contract execution [execution reverted]

Status: Fail

I do not know if the error produced is because the loan is reversed because it cannot be paid due to no profit or because of a failure in one of the Swaps.

How to know?

I see that in other people's tests it gives the same error.

Thank you

JulioSarda commented 2 years ago

I removed almost all the code from the contract and it still gives the same error.

Error: Warning! Error encountered during contract execution [execution reverted]

In Remix say "Internal JSON-RPC error".

any ideas ?

Thanks.

saedmohamad commented 2 years ago

im encountering the same issue, any ideas?

saedmohamad commented 2 years ago

Hey julio any chance you could help me out here 🙏