subway icon indicating copy to clipboard operation
subway copied to clipboard

buy/sell problem

Open zareexx opened this issue 2 years ago • 1 comments

In this build, as I understand it, the bot can only capture and analyze transactions? He can't react to them to buy/sell?

txhash=0xe93542b719b6c9b7de4627ab9743df946964c9b63f25c05dcaa5ec4247476ba2 sandwichable target found {"revenue":"-14354814103714009","optimalSandwichWethIn":"99609375000000000000","userAmountIn":"20000000000000000","userMinRecv":"0","reserveState":{"reserveWeth":"6035304367050064866","reserveToken":"164725468899396930"},"frontrun":{"amountOut":"155288283380542195","newReserveA":"105644679367050064866","newReserveB":"9437185518854735"},"victim":{"amountOut":"1780893929994","newReserveA":"105664679367050064866","newReserveB":"9435404624924741"},"backrun":{"amountOut":"99595020185896285991","newReserveA":"164723688005466936","newReserveB":"6069659181153778875"}}

I quite often see transactions as mentioned above, including without negative profit values. But the bot simply ignores this aspect. Is this how it should be?

zareexx avatar May 31 '22 00:05 zareexx

You are not taking into account the many other factors involved.

For example, this transaction you shared is for a token with a tax on it. Subway doesn't have a built-in way to determine transaction taxes in the formulas. I suspect a lot of the transactions fall into this category.

There are also points in the Flashbots part that will filter out opportunities that you can't win profitably.

brendanwenzel avatar Oct 31 '22 16:10 brendanwenzel