ArbSwapper
ArbSwapper copied to clipboard
Frontrun
P.s I dont think you are being frontrun, I think you are being backrun
They look at the mempool for normal transactions that would generate an ARB (even before they are mined) They then create their own transaction (the actual arb) and give it the same gas price as the normal transaction. The reason for this is so that it gets placed 1 position AFTER the normal transaction in the block, this ensures the Arb exists when their transaction gets processed. (A front run is the opposite where you would pay a slightly higher gas price to get it BEFORE the transaction in the block, but this is no use in this scenario as the arb wouldn't yet exist).
Hi,
To clarify, I look for an arb opportunity with a separate script, when I find one, I try to execute it, i.e., send a transaction to the ledger. To execute it, I need to be early and in the next block, therefore I use a deadline in the contract, so it will only execute if included in the next block. Anyone executing the same arb opportunity before me, will earn the profit instead of me.
A bot sees this arb transaction and executes it with a higher fee to get before MY transaction exploiting the arb opportunity. When I look at the block, I can see that the frontrunners transaction is always earlier in the block than my transaction, and second, we are both directly after the block rewards distribution.
Often the frontrunner will also be using gas tokens and pay up to 700GWei to be first.
From the perspective of the frontrunner, it is also way easier to look for transactions that perform arb than to calculate the opportunities yourself.
Hope this clarifies
Are you on telegram? Can you message me? (Username: JohnBaggins)
I have quite a bit of experience in this field. Keen to bounce ideas.
anyone willing to share ideas dm - avowe, there is a working version already