poly-flashloan-bot icon indicating copy to clipboard operation
poly-flashloan-bot copied to clipboard

Not enough amount to return loan

Open JulioSarda opened this issue 2 years ago • 11 comments

After several weeks, I achieved a version without errors. But when finding an opportunity, it returns the following result: Fail with error 'Not enough amount to return loan'. Can it be caused by the Slip Page? If I use a higher Gas Price, could it be solved? Thank you https://polygonscan.com/tx/0xd593def172e1f5fe76f24fc933210fdfd7b6f77740838ff76a0d316c9c77c0af

JulioSarda avatar Aug 10 '22 12:08 JulioSarda

The problem is the price difference between the function "quoteExactInputSingle" in Script and the price in "ExactInputSingleParams" in the Contract.

JulioSarda avatar Aug 11 '22 19:08 JulioSarda

@JulioSarda, does this mean that the bot is not profitable yet?

rinconcsc avatar Aug 11 '22 21:08 rinconcsc

@rinconcsc my version yet is not profitable.

JulioSarda avatar Aug 12 '22 14:08 JulioSarda

I am testing a version now replacing Uniswap V3.

JulioSarda avatar Aug 12 '22 14:08 JulioSarda

In my new version Quick->Sushi I get some successful arbitrages !!

JulioSarda avatar Aug 17 '22 18:08 JulioSarda

@JulioSarda so did you got a positive arbitrage opportunity and were able to make the swap?

rinconcsc avatar Aug 17 '22 19:08 rinconcsc

@rinconcsc yes. I am trying now to increase the % of successful transactions.

JulioSarda avatar Aug 18 '22 12:08 JulioSarda

@JulioSarda Which token pair / amount have you set up?

andybn avatar Aug 19 '22 05:08 andybn

@JulioSarda I have a couple of questions for you Julio, please tell me if you are able to DM via Instagram whatsapp or Telegram, I need your help. Thank you.

rinconcsc avatar Aug 22 '22 22:08 rinconcsc

I never get a opportunity that will lead to profits. I check wmatic to weth and back on uniswap v3, quickswap and sushiswap (all possible routes) for days already. Can that actually be? I set up with trade amount 100.000.

dani-s-92 avatar Aug 30 '22 12:08 dani-s-92

The problem is the price difference between the function "quoteExactInputSingle" in Script and the price in "ExactInputSingleParams" in the Contract.

@JulioSarda What should be changed to fix the issue? Update the contract and re-deploy? I’m running into the same problem. Thanks

Kru0489 avatar Oct 22 '22 19:10 Kru0489