All projects

DeRisk

AI-powered systemic risk oracle for DeFi that monitors TVL, contagion, and stablecoin depeg in real time.

CRE & AI DeFi & Tokenization Privacy Risk & Compliance

What it is

In May 2022, Terra Luna collapsed. $60 billion evaporated in 72 hours. Aave, Compound, and MakerDAO were all exposed. Not one protocol had an automated risk signal. Every decision was manual, slow, and too late.
DeRisk Protocol is the systemic risk oracle DeFi has been missing. A Chainlink CRE workflow monitors three major DeFi protocols simultaneously. Aave, Compound, MakerDAO all fetching live TVL from DeFi Llama, ETH/USD price from Chainlink Price Feeds on-chain, and stablecoin prices from CoinGecko. It runs a cross-protocol contagion cascade analysis to model blast radius, then passes all data to Claude AI for a risk score. A rule-based fallback and contagion-adjusted score provide additional consensus. The final risk score and contagion assessment are written atomically to the DeRiskOracle contract. Integrated vaults can trigger automatic circuit breakers when risk exceeds a threshold thus no governance vote required.

How it Works

  • Smart contracts: Solidity (DeRiskOracle, SimpleLendingPool, RiskAwareVault) on Sepolia
  • CRE Workflow: TypeScript using HTTPClient (DeFi Llama TVL + CoinGecko stablecoins), EVMClient (Chainlink ETH/USD price feed), ConsensusAggregationByFields, Claude AI risk scoring, runtime.getSecret()
  • Frontend: React + Vite deployed on Vercel
  • AI: Claude (Anthropic) for risk analysis
  • Stack: Hardhat, viem, Tailwind CSS

Links

Created by

  • Max Karlsson