All projects

StableGuard

Automated GENIUS Act Compliance Monitor for Stablecoins

Risk & Compliance

What it is

Stablecoins hold over $150B in value but compliance verification is manual — monthly PDF reports by accounting firms, with 30+ day delays. When verification fails, the consequences are catastrophic (TerraUSD: $40B collapsed in one week). The U.S. GENIUS Act mandates real-time compliance for stablecoin issuers, but enforcement is still manual.

StableGuard automates GENIUS Act compliance monitoring using Chainlink CRE as the orchestration layer. It runs 4 CRE workflows: (1) Reserve Health Check fetches live reserve data from DeFiLlama and on-chain supply, computes 4 GENIUS Act checks (1:1 backing, permitted assets, no rehypothecation, audit freshness), calculates a compliance score (0-100), and writes the report to our ComplianceOracle contract on Sepolia. (2) Safeguard Trigger listens for on-chain ReportUpdated events and sends webhook alerts for compliance breaches. (3) Regulatory Parser fetches legislative text from Congress.gov and uses Google Gemini AI to analyze regulatory impact. (4) Compliance Report generates a formal AI attestation via Gemini and pins it permanently to IPFS via Pinata with a keccak256 proof hash. The system replaces manual quarterly audits with real-time, automated, on-chain compliance attestations that are transparent, tamper-proof, and verifiable by anyone.

How it Works

Built on Chainlink CRE (Runtime Environment) with 4 TypeScript workflows using the @chainlink/cre-sdk. Workflows use CRE capabilities including HTTP (DeFiLlama, Congress.gov, Pinata IPFS), EVM Read/Write (Sepolia), Log Triggers (on-chain events), and Cron triggers. AI integration via Google Gemini 2.0 Flash for attestation generation and regulatory parsing. Smart contracts written in Solidity 0.8.30 using Foundry, with ComplianceOracle storing reports and AlertController emitting graded alerts. 6 contracts deployed on Ethereum Sepolia. Frontend built with Next.js 16, wagmi, and RainbowKit, reading live on-chain data. All workflows simulate successfully via the CRE CLI.

Links

Created by

  • Fredrick Kabu