Open ric108 opened 2 years ago
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.
cool! thanks for the reply. will try these out
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.
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?