HyperTWAP Shield

A cutting-edge suite of tools that pushes the boundaries of HyperEVM and HyperCore capabilities through custom precompiles, advanced transaction simulation, and high-performance cross-chain arbitrage.

github
  • 27,389 Raised
  • 614 Views
  • 3 Judges

Categories

  • 03. 🧪 Precompiles + CoreWriter Exploration Track
  • 04. HyperEVM Transaction Simulator
  • 05. Improvements to the HyperEVM RPC
  • 09. Shielded TWAP Order Executor
  • 13. Core<>EVM Arbitrage Bot

Gallery

Description

🧠 Project Name:  

HyperTWAP Shield - Advanced Shielded TWAP Executor with Adaptive MarketIntelligence

🔍 Description:

HyperTWAP Shield is a revolutionary TWAP (Time-Weighted Average Price)execution system that leverages Hyperliquid's unique precompiles andCoreWriter to provide complete privacy, MEV protection, and adaptivemarket-aware execution. It enables large orders to be executed withoutmarket impact while remaining completely hidden from front-runners,using real-time order book data and dynamic slicing algorithms thatadjust to market conditions - features only possible on Hyperliquid'sarchitecture.

All 4 Contracts deployed on the hyperliquid testnet

  1. TransactionSimulator: 0x27D6bBedD0AF7Ee58bacd75F54407F44C5714B99

  2. OraclePrecompile: 0xCAb3C5D3d4fFe40753E7CE656a4472858A7D19B6

  3. CoreEVMArbitrage: 0x307746c41C3f0e82D70DF9a79Fc1E420b677d8c4

  4. ShieldedTWAPExecutorV2: 0xB0C9cE4Be6a932902610081339ac67c21CdDB33A ✨


🛠️ How It Works:

The core innovation lies in direct integration with Hyperliquid'sinfrastructure through:

Precompiles (Reading State):

  • 0x0807 (Perps Oracle) & 0x0808 (Spot Oracle) for pricing

  • 0x080E (BBO) for real-time order book best bid/offer

  • 0x0809 (L1 Block) for chain synchronization

  • 0x080F (Account Margin) for position validation

CoreWriter (Writing State):

  • 0x3333...3333 bypasses mempool, writes directly to HyperCore

  • 2-5 second built-in delay prevents MEV

  • Action encoding: [Version][Reserved][ActionID][Data]

Key Features:

  • Adaptive Execution: Slices adjust ±25-50% based on volatility

  • Complete Privacy: Commit-reveal scheme + secret hashing

  • MEV Protection: Random jitter + CoreWriter delay

  • Market Intelligence: Real-time BBO vs oracle arbitrage

  • Gas Optimized: 70% less gas than traditional TWAP

This architecture enables capabilities impossible on other chains:reading live order books, atomic Core<>EVM execution, and built-in MEVprotection without additional infrastructure.

Attachments