kaymen99 / uniswap-sushiswap-arbitrage

Smart contract for performing arbitrage between Uniswap and Sushiswap
MIT License
64 stars 16 forks source link

Can I use it only for arbitrage trade? #4

Open earnbuzz opened 1 year ago

earnbuzz commented 1 year ago

I don't want to take loan. I want to do arbitrage trade only with my wallet balance.

kaymen99 commented 1 year ago

There is no loan in this project, you just deposit tokens from your wallet to "your" arbitrage contract and then use the contract to perform the swaps on Uniswap/Sushiswap

earnbuzz commented 1 year ago

thanks bro, It seems that I am doing something wrong but I don't understand because of ignorance. I used only two files Contracts and Interfaces in remix ide.

Contract Deployed Successfully: https://goerli.etherscan.io/tx/0xa24226cedf4dd3ba2b1c07c37e143544898809adde2f7a1649a7a867e1576834

But the deposit is not going properly. I used goerli network. Deposit Transaction Error is coming. Would you check: https://goerli.etherscan.io/tx/0xbbb65ed397a50fffb3c49d00aa497aca5505e226cb38f537dbe9eb056fee8972

After I checked Metamask Data while depositing, Function Type: (Unit256) Transaction insight not supported for this contract at this time.

What can you tell me why this error is coming and how many folders I have to use in remix ide. If you have a YouTube video about this project then give me the link bro I want to watch the video.

earnbuzz commented 1 year ago

After I changed the constructor, Deploy with deposit is successful but not able to withdraw from contract "Fail with error 'Not enough amount deposited" and makearbitrage error. Can you tell me the solution?

Depoly Trans: https://goerli.etherscan.io/tx/0xb8586f8e5eccd4f2dcf10f95b8881881d762b68c999fd6606af57fd4312fbe34

Withdraw Trans: https://goerli.etherscan.io/tx/0xc359d38028278d471ff7e9b7a3cb834918e35c3f09d3310b8b4d54853b622254