Immute's BUY_LOCK_BLOCKS Mechanism Aims to Stop Same-Block Sandwich Attacks in DeFi
Sandwich attacks in DeFi allow bad actors to profit by placing buy and sell orders around a victim's pending transaction, exploiting public mempool transparency and manipulating AMM pricing. Immute has introduced a smart contract feature called BUY_LOCK_BLOCKS, which enforces a per-address cooldown window measured in block numbers after any buy transaction. During this window, the same address cannot execute another buy, making it structurally impossible to complete the front-run and back-run sequence from a single wallet. Two on-chain functions, isLocked() and lockedUntil(), provide transparent enforcement and allow external interfaces to display remaining cooldown time. Unlike approaches such as batch auctions or commit-reveal schemes, this mechanism operates at the contract level without introducing significant latency or complexity for regular traders.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in