-
Notifications
You must be signed in to change notification settings - Fork 462
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 'OneSplit: swap makes no sense' #4
Comments
I'm getting the same error. It seems that the ZRX trade is always getting 0 tokens back for some reason... |
https://extropy-io.medium.com/arbitrage-bot-part-2-97e7b710dcf The article explains it best. Essentially you are getting front-rjn, or at least that's the common opinion, I havent dug deep enough but it seems like the result from 0x is 0 because somebody front run you and hence 1inch complains that zero amount makes no sense (selling) |
Ah ok. That makes sense then. Thanks! |
@ezynda3 any updates on that? Have you tried testing with a forked version of Mainnet? That might prove or disprove whether it was front-runners after all. |
@codemedici |
@Bcantz27 does this bot work? |
@nfujimori-godaddy @Welsh-Boogie So the question remains, has anyone been able to successfully run this bot? |
Transaction keeps reverting with the error "Fail with error 'OneSplit: swap makes no sense'"
https://etherscan.io/tx/0x35c7e07964a90184d8f3571ae4b5d6b976b978b55f306cd21dcfeca39e5eff49
It seems the error is being thrown from OneSplit's swap function
More specifically, this line here
require(fromToken != toToken && amount > 0, "OneSplit: swap makes no sense");
My guess is that the amount being passed is less than zero in the TradingBot contract.
defi-bot/src/contracts/TradingBot.sol
Lines 290 to 293 in f77ea1c
Does anyone have any ideas what might be happening or how to work around this?
The text was updated successfully, but these errors were encountered: