TheOneWhoBurns

Detect and defend against the nonce race exploit on Polymarket's CTF Exchange

20
3
100% credibility
Found Feb 27, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

Tools to monitor Polymarket prediction markets for exploitative bet cancellations, track suspicious traders, check trade partners, detect orderbook manipulation, and automatically protect positions.

How It Works

1
📰 Discover the Problem

You hear about sneaky traders on Polymarket who cancel losing bets right before results, leaving others with worthless shares.

2
📥 Grab the Safety Kit

You get the free protector tools that watch for these tricks and keep your trades safe.

3
🚀 Turn On the Watchdog

With one simple start, it begins scanning trades in real-time for cheater signs around market close times.

4
📋 Build Your Bad Actor List

It automatically gathers and updates a list of known troublemakers based on their shady moves.

5
🔍 Check Every Trade Partner

After each bet fills, it quickly looks up if your trading partner is on the danger list.

6
🛡️ Get Instant Defense

If a cheater is spotted, it alerts you and can automatically sell your position to avoid big losses.

Trade Securely

Now you bet on Polymarket confidently, protected from ghost fills and market tricks.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 20 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is polymarket-nonce-guard?

Polymarket-nonce-guard is a Python toolkit to detect and defend against the nonce race exploit on Polymarket's CTF Exchange, where traders call incrementNonce to ditch losing orders before settlement, leaving you with worthless ghost fills. It runs real-time monitors polling Polygon blocks for suspicious calls, builds blacklists of exploiters, checks your trade counterparties post-fill, and even auto-sells positions via the CLOB API if matched with bad actors. Setup is quick with pip installs for Web3 and py-clob-client, outputting logs and alerts to a data directory for easy integration.

Why is it gaining traction?

It stands out by automating the full detect-defend-respond cycle—logging events, flagging blacklisted addresses, and triggering emergency sells—without needing custom bot rewrites. Developers hook into its simple API for blacklist checks or alerts via JSONL files, Unix sockets, or webhooks, plus orderbook anomaly detection spots manipulation like liquidity pulls around BTC 5-min windows. In a niche where manual checks waste cycles against CTF exploiters, this delivers immediate risk mitigation.

Who should use this?

Polymarket traders running bots on CTF Exchange markets, especially high-frequency plays like BTC 5-min binaries. It's for proxy wallet operators tired of ghost fills eating profits, or teams needing on-chain counterparty screening before settlement. Pairs well with existing CLOB clients for defensive layers.

Verdict

Grab it if you're exposed to Polymarket CTF—solid docs and CLI starters make it plug-and-play despite 19 stars and 1.0% credibility score signaling early maturity. Run the monitors alongside your bot today; lacks tests but niche value outweighs risks for active traders.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.