Search projects, hackathons, sponsors and tech

    ← All projects

    mantis

    Mantis is an AI DeFi agent that detects anomalies and gates swaps with World ID.

    Demo

    About

    Mantis is a signal-to-execution AI agent for safer DeFi automation. It monitors on-chain activity, detects anomalous or high-confidence signals, evaluates an execution intent, and routes approved swaps through Uniswap V3 on Arbitrum. Consequential actions require a fresh World ID for Agents approval. The backend validates the OIDC response, verifies nonce and issuer claims, binds the approval to the exact trade-intent hash, and fails closed on expired, denied, or mismatched approvals. Every decision is recorded through the agent identity and safety layer.

    How it's made

    Mantis is built as a Python service architecture using FastAPI, PostgreSQL, Redis, web3.py, Docker, and Railway. Scout collectors monitor Mantle, Arbitrum, HashKey, and Ethereum. Signals flow through detection, enrichment, delivery, and Execute workers. Execute converts matching signals into canonical ExecutionRequests, runs deterministic safety guards, then requires a signed World OIDC approval artifact for protected actions. The approved Arbitrum path uses Uniswap V3 SwapRouter02 with QuoterV2 minimum-output protection. The World integration uses authorization-code OIDC, Client Secret Basic, S256 PKCE, JWKS ID-token validation, nonce checks, short-lived HMAC-signed artifacts, and exact intent binding. Dry-run mode is enabled for safe demonstrations.