## sandwiching
### tl, dr
* sandwiching occurs when a searcher identifies a profitable trade in the mempool that will cause an impact on the price of an asset.
* a searcher buys or sells a calculated amount directly before the large trade is executed and then immediately exits their position after the large order has taken place, banking a profit.
* the main theme of sandwich attacks is the deterministic price slippage caused by available liquidity in the pool, which is deterministic . slipage is the change in the price of an asset during a trade.
* sandwiches (and most frontruns) are often labelled **toxic mev** because the tx that is frontrun either executes at worse conditions or fails to execute.
* a softer side of sandwich is on the lens of economic efficiency, on which an order can create a consumer surplus and the absence of a [nash equilibrium](https://en.wikipedia.org/wiki/Nash_equilibrium). the bot operator would love the economic system back.
---
### in this dir
* [interesting txs in the wild](interesting_examples.md)
---
### resources
* [anatomy of sandwichor bots](https://github.com/go-outside-labs/mev-toolkit/blob/main/anatomy_of_mev_bots/bots/sandwichors.md)
* [sandwich attacks on uniswap v2](https://www.defi-sandwi.ch/)
* [sandwich overview, by eigenphi](https://eigenphi.io/mev/ethereum/sandwich)
* [modern mev sandwich attacks on ethereum routers, by totlsota.eth](https://mirror.xyz/totlsota.eth/9JaNkZ1XQfQD6Y79aLYHC_kb_dSBoJ2JYiag5BuGGM8)
* [demystify the dark forest: sandwich attack, by coinmonks](https://medium.com/coinmonks/demystify-the-dark-forest-on-ethereum-sandwich-attacks-5a3aec9fa33e)
* [analysing execution quality in osmosis, by meka.tech](https://meka.tech/writing/analysing-execution-quality-in-osmosis--e9dd8394-0d09-4d92-a0c7-27629d321af0)