About
TLISHook (Time-Locked Intent System Hook) is a Uniswap V4 hook that eliminates MEV attacks using a combination of time-locked encryption and verifiable randomness.
THE PROBLEM: Standard Uniswap V4 pools are still vulnerable to sandwich attacks, front-running, and other MEV exploitation. Traders lose 2-5% of their swap value to sophisticated bots that scan the mempool and manipulate transaction ordering.
THE SOLUTION: TLISHook introduces a novel two-layer defense mechanism:
- PRIVACY LAYER: Users submit encrypted swap intents that are XOR-encrypted with future Drand randomness. These intents remain completely unreadable for a 5-minute collection window, preventing bots from seeing trade flow before execution.
- RANDOMNESS LAYER: At execution time, each swap executes at a "surprise price" - the market price plus or minus a random offset (±1% in sqrtPriceX96 space). This randomness is derived from Drand (a decentralized randomness beacon), making it verifiable and unpredictable.
KEY FEATURES:
- Temporal privacy through time-locked encryption (5-minute batches) - Surprise pricing that makes front-running unprofitable - User-defined safety bounds ensure you never get worse than your specified limits - Atomic batch execution prevents partial manipulation - Decentralized coordination via timestamp-based batch IDs - Escrow-based settlement for autonomous execution
THE INNOVATION: Beyond security, TLISHook gamifies trading. Users might get lucky and receive better-than-market prices, or unlucky and pay slightly more - but always within their safety bounds. This transforms boring swaps into engaging, strategic experiences while providing stronger MEV protection than traditional approaches.
TECHNICAL ARCHITECTURE:
- Built on Uniswap V4's hooks system - Integrates Drand quicknet (3-second rounds) for randomness - Uses poolManager.unlock() → unlockCallback() for atomic settlement - Keeper network executes batches after time-lock expires (60-second priority window) - All user funds held in hook's escrow (s_userBalances mapping)
IMPACT: Trading becomes both MORE secure (MEV-resistant) AND more fun (gamified with provably fair randomness). Users maintain control via price bounds while potentially benefiting from lucky random outcomes.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






