uniswap-arbitrage-flash-swap icon indicating copy to clipboard operation
uniswap-arbitrage-flash-swap copied to clipboard

Swap pairs

Open ric108 opened this issue 2 years ago • 3 comments

Firstly, thanks for sharing this code with us. I am looking for the part to input pairs to swap. Do we have to input them manually or will the code look for the best pair on the dex and go through with the flashswap?

ric108 avatar Apr 08 '22 16:04 ric108

Out of the box the pairs are BNB and BUSD I believe we need to add them to pairs.js as well as their contract address where that's relevant too. The arbs that the script is finding for me (BUSD/BNB) are either too big or otherwise not actionable. I've changed the size in pairs.js in amountTokenPay but nothing seems to change in the size of arb ops being found, see example below:

[17071056] [4/19/2022, 3:52:52 AM]: [localhost] [BUSD/BNB pancake>panther] Arbitrage checked! Expected profit: 207.480 $86498.32 - 41495.95% [17071056] [4/19/2022, 3:52:52 AM]: [localhost] [BUSD/BNB pancake>panther] Arbitrage opportunity found! Expected profit: 207.480 $86498.32 - 41495.95% [17071056] [4/19/2022, 3:52:52 AM]: [localhost] [BUSD/BNB panther>pancake] Arbitrage checked! Expected profit: 207.243 $86399.65 - 41448.62% [17071056] [4/19/2022, 3:52:52 AM]: [localhost] [BUSD/BNB panther>pancake] Arbitrage opportunity found! Expected profit: 207.243 $86399.65 - 41448.62%

My next plan is to find out why these arbs are so big, how to solve this if needed, and then to experiment with other LPs / pairs to see if it's better. Good liquidity but low tx's would be the aim in identifying any pair.

interzone2 avatar Apr 19 '22 03:04 interzone2

cool! thanks for the reply. will try these out

ric108 avatar May 26 '22 18:05 ric108

you got to write a script that picks up the pairs for you, I did it in the past already. The script should look through all the available tokens and generate .json files for you to feed the bot.

mindfulme avatar Sep 11 '22 06:09 mindfulme