Difference between revisions of "Front running"

Jump to navigation Jump to search
58 bytes added ,  01:54, 11 May 2022
m
added link to Metamask
m (added link to Metamask)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
A sandwich attack occurs when an attacker buys an asset before a traders big purchase and sells right after (vice-versa for big sells). The price goes up after a big purchase and the attacker profits from the difference. This is common with AMMs like [[Uniswap]] because of [[Slippage]] and are often executed by [[MEV|MEV bots]].  
Front running, also called a sandwich attack, occurs when an attacker buys an asset before a traders big purchase and sells right after (vice-versa for big sells). The price goes up after a big purchase and the attacker profits from the difference. This is common with AMMs like [[Uniswap]] because of [[Slippage]] and are often executed by [[MEV|MEV bots]].  


== Front running in traditional finance ==
== Front running in traditional finance ==
Line 8: Line 8:


=== How it works ===
=== How it works ===
When a user sends a transaction, like buying ETH on uniswap with metamask, the transaction gets sent to the [[Mempool]] (pending transactions) before included in a block (getting confirmed). A bot can detect this and send a buy order with slightly more gas. This ensures the bot's buy order executes before the user's. Bots usually sell immediately after.  
When a user sends a transaction, like buying ETH on [[Uniswap]] with [[MetaMask]], the transaction gets sent to the [[Mempool]] (pending transactions) before included in a block (getting confirmed). A bot can detect this and send a buy order with slightly more gas. This ensures the bot's buy order executes before the user's. Bots usually sell immediately after.  


This results in users getting paying a higher price which bots profit off.
This results in users getting paying a higher price which bots profit off.
Line 35: Line 35:
<references />
<references />
[[Category:Tools]]
[[Category:Tools]]
[[Category:Glossary]]
281

edits

Navigation menu