Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not enough amount to return loan #99

Open
JulioSarda opened this issue Aug 10, 2022 · 11 comments
Open

Not enough amount to return loan #99

JulioSarda opened this issue Aug 10, 2022 · 11 comments

Comments

@JulioSarda
Copy link

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
Copy link
Author

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

@rinconcsc
Copy link

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

@JulioSarda
Copy link
Author

@rinconcsc my version yet is not profitable.

@JulioSarda
Copy link
Author

I am testing a version now replacing Uniswap V3.

@JulioSarda
Copy link
Author

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

@rinconcsc
Copy link

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

@JulioSarda
Copy link
Author

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

@andybn
Copy link

andybn commented Aug 19, 2022

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

@rinconcsc
Copy link

@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.

@dani-s-92
Copy link

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.

@Kru0489
Copy link

Kru0489 commented Oct 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants