How does Sandwich Attack work?
The first trade changes pool pricing, the target executes against the changed state, and the second trade unwinds the attacker's position. Profit depends on liquidity, fees, size, and ordering.
What should trading bot developers know about Sandwich Attack?
Slippage limits constrain acceptable execution but do not eliminate all ordering risks. Private routing reduces exposure to some observers; it should not be described as universal protection against every sandwich route.
Sources & further reading
Definitions are editorial summaries of the sources below. Protocol behavior and provider policies can change; consult the linked documentation for implementation details.