-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fail with error 'Not enough amount to return loan' #8
Comments
I've had the same thing happen twice. Does the logic allow for an attempt to be launched if the opportunity won't be successful? |
I think there is a problem of timing , the arbitrage can fail because the price is changed befire the transaction is lanched |
Since the way the bot trade is different from the 1inch does, you may not trade with the prices you'd expect. I'm hoping to integrate with other defi protocols like uniswapV3 and dodo other than uniswapV2 fork defis so that you can get more arbitrage opportunities. |
I think implementing the arbitrage opportunity finder on the smart contract will fix this issue. I read from your medium article that you tried it wih 1INCH smart contract unsuccessfully because it is developed very bad, so there is the need to find/publish another smart contract. |
Maybe that's true. I think relying solely on 1inch api to detect price changes is one of the problem. I will fork some blocks where the flashloan failed because of it and see what was happened on prices. |
did you tried paraswap ? i personnaly did but the doc there just suck, |
Is it a possibility to check the arbitrage opportunities in the smart contract and rund the loop for the checks there forever? Or is it not possible to run a checking loop there? |
when the bot found an oportunity , the transaction not succeed du to this error
Fail with error 'Not enough amount to return loan'
The text was updated successfully, but these errors were encountered: