Create cross_trading.md

This commit is contained in:
mia von steinkirch, phd 2022-12-20 11:13:06 -08:00 committed by GitHub
parent e431b7e091
commit 238deb855c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
sandwich/cross_trading.md Normal file
View File

@ -0,0 +1,15 @@
## cross-trading arbitrage like sandwich
<br>
### tl; dr
- a sandwich arbitrage has characters as below:
- in the same block, the attacker's transactions contain a start transaction, an end transaction, and one or more victim transactions in between
- the combination of attacker and victim needs to satisfy an essential condition: the from address is not the same
- the `CombinedTransferTable` of each transaction contains the same Address processing the Trade. Combining the Attacker's Start Transaction and End Transaction give the CombinedTransferTable of this arbitrage having the final net surplus.
<br>