What Is the Risk of ‘Front-Running’ in Derivative Smart Contracts?
Front-running occurs when a malicious actor sees a pending transaction (like a large trade or liquidation) in the public blockchain memory pool (mempool) and submits their own transaction with a higher gas fee. This allows their transaction to be processed first, profiting from the predictable price movement or action of the original transaction.