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

buy/sell problem #6

Closed
zareexx opened this issue May 31, 2022 · 1 comment
Closed

buy/sell problem #6

zareexx opened this issue May 31, 2022 · 1 comment

Comments

@zareexx
Copy link

zareexx commented May 31, 2022

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?

@brendanwenzel
Copy link

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.

@libevm libevm closed this as completed Jun 3, 2023
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