prededge
github.com/yiyangshen04/prededge
Automated trading system that scans on-chain oracle rulings before Polymarket's UI reflects them, enabling early execution on crypto markets.
On-chain oracle front-running — monitors Polygon block data for UMA/OVM resolution transactions, parses the outcome before the market's frontend updates, then executes trades via CLOB API with AI-based confirmation.
prededge implements a unique latency arbitrage strategy targeting the gap between on-chain oracle resolution and market price adjustment on Polymarket. The system continuously monitors Polygon blockchain for UMA/OVM oracle settlement transactions using a lightweight scanner. When a resolution tx is detected, it fetches the decoded outcome, runs an AI-based confirmation layer (likely a small LLM or rule-based classifier), then submits market orders via the CLOB API before the Polymarket frontend or competing bots react. Key technical components include a Web3 connection to Polygon, event log filtering for oracle contracts, and a TypeScript/Node backend with HTML dashboard. The AI layer adds signal verification to avoid false triggers from non-final settlements. With 70 stars and active development, the repo shows real-world testing signals. Strategy carries execution risk: block times ~2s on Polygon, and Polymarket's own matching engine may update before the bot can act. Best suited for advanced users with low-latency infrastructure and gas optimization experience. The codebase is clean with proper error handling and config files. Malware risk is negligible given the transparent, well-structured code. This is a genuine, innovative tool for market microstructure arbitrage.