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

Do we need to set the amount we want to purchase with #13

Open
D3G3Nerator opened this issue Jul 15, 2021 · 4 comments
Open

Do we need to set the amount we want to purchase with #13

D3G3Nerator opened this issue Jul 15, 2021 · 4 comments

Comments

@D3G3Nerator
Copy link

Do we need to set the amount we want to purchase with. For example, lets say i want to flashswap using 1 bnb across pancake and bakeryswap, do i need to set amount of bnb i need to spend.

@mindfulme
Copy link

mindfulme commented Jul 20, 2021

As I see it in the watcher.js we don't need to specify the amount we purchase with, we only cover gas fees. We take a flashloan which covers the required amount to do the max profit out of each arbitrage opportunity

@mindfulme
Copy link

you can change amountTokenPay, I highly suggest going over the forks

@mkamdoum
Copy link

mkamdoum commented Sep 6, 2021

Does Watcher.js look for arb opportunities as well?

@mindfulme
Copy link

You need the optimal amount man, there is just too much math. I have gone over everything already to the profitable bot. I can tip the formula if you need it, I have all graphs and so on with Desmos charts and equations. You need to build an equation that represents your trades. You will clearly see when changing parameters how profits change when you change trade amount (it all has to do with price impact).
image

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