Register and share your invite link to earn from video plays and referrals.

Nethermind Security
@NethermindSec
Comprehensive security from @Nethermind, from audits to formal verification. Book now:
Joined September 2024
44 Following    1.6K Followers
Every pending transaction in the mempool is a statement of intent. Bots read it before it settles and front-run what's worth front-running. The contract calls 𝘈𝘔𝘔.𝘴𝘸đ˜ĸ𝘱(đ˜ĩ𝘰đ˜Ŧđ˜Ļđ˜¯đ˜đ˜¯, đ˜ĸ𝘮𝘰đ˜ļđ˜¯đ˜ĩđ˜đ˜¯, 𝟘). That zero is 100% slippage tolerance. A frontrunner inflates the price, lets the swap settle, sells back at profit. A 10,000 USDC trade returns 1 ETH instead of 5. đ˜ŗđ˜Ļ𝘲đ˜ļđ˜Ēđ˜ŗđ˜Ļ(đ˜ĸ𝘤đ˜ĩđ˜ļđ˜ĸ𝘭𝘈𝘮𝘰đ˜ļđ˜¯đ˜ĩ𝘖đ˜ļđ˜ĩ >= 𝘮đ˜Ēđ˜¯đ˜ˆđ˜Žđ˜°đ˜ļđ˜¯đ˜ĩ𝘖đ˜ļđ˜ĩ) lets the user set their worst acceptable price. If a bot moves the price outside that range, the swap reverts. The attacker burns gas for nothing. The mempool stays public. Defense lives in the code, or it doesn't exist.
Show more