Skip to content
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

Swap pairs #18

Open
ric108 opened this issue Apr 8, 2022 · 3 comments
Open

Swap pairs #18

ric108 opened this issue Apr 8, 2022 · 3 comments

Comments

@ric108
Copy link

ric108 commented Apr 8, 2022

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?

@interzone2
Copy link

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.

@ric108
Copy link
Author

ric108 commented May 26, 2022

cool! thanks for the reply. will try these out

@mindfulme
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants