I am currently watching into vulnerabilities and different threats for DEXes. I found some sandwich attacks or front running, that use moderate-high Gas Fees on Buy and crazy high Gas fees on the sell. Why is this so?
I mean almost the whole drain was used on fees. Furthermore why are is does the buy of the "victim" have lover fee than the actual attack?
Can someone explain that to me?
Here is an example: Contract Name: Feudalz Goldz $GOLDZ Contract Adress: 0x7be647634a942e73f8492d15ae492d867ce5245c
Buy Front Run: Buys 2.71431 $ETH to $GOLDZ GAS: 29 https://etherscan.io/tx/0x89fe9891aa8e6361914b270b0a77353ea4d7384b33e657f0afc7d0204a9eac92
Victim Buy: Buys 1 $ETH to $GOLDZ GAS: 31 https://etherscan.io/tx/0x36fb94763cbd415ed3b05def8b6488c014b255b5a106d10f80d1befe72864ec3
Sell Front Run: Sells 2.86919 worth $GOLDZ to $ETH GAS: 1,612 equvalent of 0.1516 ETH https://etherscan.io/tx/0xcceb888f77b56b72f15a6e1a720cb0d99a88e2aa7e2486b9fe47c85e7f079a4f
As I see it they drained 0.1548 and paid 0.1516 for fees what makes them earn only 0.0032. Is this correct?