All projects

CRE DeFi Risk Monitor

Event-driven DeFi risk monitoring using Chainlink CRE and paid AI analysis

CRE & AI World

What it is

CRE DeFi Risk Monitor is an event-driven risk monitoring system for DeFi protocols. It uses Chainlink CRE as an orchestration layer to react to on-chain events, perform off-chain AI risk analysis, and write results back on-chain via a secure oracle.

How it works
When a large withdrawal occurs in a DeFi vault, the contract emits a LargeWithdrawal event. This event is picked up by a CRE workflow, which triggers a paid AI risk analysis. The AI analyzer evaluates the withdrawal relative to vault liquidity and returns a risk score. The result is then submitted on-chain through a risk oracle for transparency and auditing.

Problem it solves
Large withdrawals can signal exploits, insider actions, or liquidity risk. Today, most protocols rely on manual monitoring or centralized systems. This project demonstrates how Chainlink CRE can automate real-time, trust-minimized risk assessment by securely orchestrating on-chain events, off-chain AI computation, and on-chain reporting.

How it Works

Solidity smart contracts for the DeFi vault, oracle, AI analyzer, and coordinator

Chainlink CRE as the orchestration layer connecting on-chain events to off-chain computation

Foundry for development, testing, fuzzing, and simulation

Paid AI execution simulated via on-chain fee enforcement

Event-driven architecture with gas-optimized contracts and security checks

Links

Created by

  • Shiva Nageshwarrao