Cryptographic Sniping & Infrastructure Upgrades
active maker/taker execution
Published: 2026-07-17 | Project: Bet Bodhi | Discipline: Web3 Primitives & Cryptographic Routing
Author: Nicholas Alexander MacAskill — Founder & CTO, Flocano Labs | Canonical: https://www.nicholasmacaskill.com/dossier/bodhi-cryptographic-sniping
1. Transforming SX Bet into an Active Sniper (CLOB vs AMM)
Unlike venues such as Azuro or Dexsport which use passive Liquidity Pools (AMMs), SX Bet operates as a peer-to-peer Central Limit Order Book (CLOB). To execute on SX Bet, Bodhi cannot simply interact with a pool contract; it must actively hunt and fill specific cryptographically-signed Maker orders.
Because SX Bet requires this complex Maker/Taker cryptographic handshake, we integrated the official \@sx-bet/sportx-js\ SDK. We rewrote the orderbook parser to capture the entire raw Maker order—including the counterparty's EIP-712 cryptographic signature. We then built the \executeSnipe\ function to generate a matching Taker signature, format the payload, and submit both signatures natively to the Polygon blockchain for smart contract verification (with a hardcoded risk ceiling to protect downside).
2. Azuro Protocol V3 Infrastructure Upgrade
To ensure Azuro was a viable execution venue, we modernized the \AzuroApi\. The protocol recently deprecated its older data structures in favor of a new V3 subgraph architecture. We rewrote the GraphQL queries to accommodate these schema changes—specifically engineering workarounds for the removal of the traditional status field by implementing time-based filtering (\startsAt\) and mapping sport-specific slugs. We also secured the connection by integrating a dedicated Azuro Developer API token into the environment, fully authorizing Bodhi to read live orderbooks and submit bets on-chain.