-
Notifications
You must be signed in to change notification settings - Fork 92
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
Transactions reverted "Fail with error 'Not enough funds to repay dydx loan!" #4
Comments
New block received. Block # 10769902 |
it mean uniswap sell price<buy price ,so money be come lesser? |
the prices that I am getting are just wrong and there was no ARB in actuality. @cnspot |
this bug had fixed now? |
Maybe it would be better not to use dydx loan, just arbitrage on uniswap, the trading pair can be as follows: WETH--> token, token --> DAI, DAI-WETH, this is just an example. This can avoid the extra transaction cost of loan and only use the existing balance |
hmmm good idea...pull request? @StrawberryFlavor |
I think in your wallet must have dydx interest pay amount before getting loan |
sorry, what do you mean? @krishanb4 |
if you use DAI(example) your wallet must have dydx fee(DAI) before start arbi. Because if your profit cannot pay dydx loan fee you have to pay it from your wallet DAI balance. |
So far the bot was able to find some ARB opportunities, but all 3 transactions were reverted:
https://etherscan.io/address/0x92E52890cfA407D9713A6cFcd7FB6F8d50B99FB2
The error I am getting is "Fail with error 'Not enough funds to repay dydx loan!", no idea why this is happening? My theory is that the prices that the bot is finding are wrong, therefore the calculation of profit for that transaction is wrong. I tried switching to another service like QuickNode instead of Infura, but the result is the same. Any ideas are welcome :)
The text was updated successfully, but these errors were encountered: