poly-flashloan-bot: Fail

I got quite some transactions that just say Fail without further information. The bot seems to be running successfully, but somehow there is an error inside the smart contract. However, I have no idea how to debug this?

https://polygonscan.com/tx/0x62db419e8b7d43347e0ddb5e438fe8194bac07a3b520d018a7e89c478320d4f6

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

In the test error folders there is the following :

			.emit(Flashloan, "SwapFinished")
			.emit(Flashloan, "SentProfit");
		const balance = await USDT.balanceOf(owner.address);
		expect(balance.gt(getBigNumber(0, 6))).to.be.true;
	});

Sent Profit

Do you know why this isn’t included in the live script?

That token info is used only at src/debug.ts to debug transactions, so it doesn’t fix the error itself.

I got this error too and have no idea what’s going on there.

Yes, I agree. It’s probably because of the contract.