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

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

Open D3G3Nerator opened this issue 2 years ago • 4 comments

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.

D3G3Nerator avatar Jul 15 '21 22:07 D3G3Nerator

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 avatar Jul 20 '21 13:07 mindfulme

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

mindfulme avatar Jul 20 '21 17:07 mindfulme

Does Watcher.js look for arb opportunities as well?

mkamdoum avatar Sep 06 '21 05:09 mkamdoum

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

mindfulme avatar Sep 11 '22 06:09 mindfulme