Open burgossrodrigo opened 2 years ago
If you have a failed txHash I can help you find the exact error, but without it, I'm just making an educated guess since this is a general error.
If your contract does not return the borrowed amount plus the flashloan fee (0.09% in V2), then it will fail. So in your contract, you are borrowing 50ETH so your contract balance must be > 50.045 ETH by the end of the transaction.
I don't know if here is the best place to ask but sure is the place with more experienced dev on the subject. I have this contract:
When i call
flashloan()
using truffle CLI i receive this error:SafeERC20: low-level call failed when calling
Could someone give me a hint over this?