Add notes on sandwiching

This commit is contained in:
bt3gl 2022-03-28 10:01:07 +01:00 committed by GitHub
parent 85d1f88fef
commit 20da206316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,5 @@
## Notes on Sandwich trading
* To sandwich, a searcher will watch the mempool for large DEX trades.
* A searcher can calculate the approximate price effect of this large trade and execute an optimal buy order immediately before the large trade, then executing a sell order immediately after the large trade (selling it for the igher price caused by the large order).
* Sandwiching is riskier as it isn't atomic an it's prone to [salmonella attack](https://github.co/Defi-Cartel/salmonella)