← Back to home

DeRisk Watchtower

Real-time DeFi risk watchtower with alerts & one-click auto-protect on Base testnet.

Problem Statement

DeRisk Watchtower is a real-time risk layer for DeFi lending. It tracks positions, computes health factors, raises actionable alerts, and triggers a one-click “auto-protect” action (small repay/boost) on Base testnet. Data is indexed by a The Graph subgraph and scheduled via Chainlink Automation, with an explainable summary for each risk event. The goal is to reduce liquidation risk with a simple, demo-first UX.

Solution

Contracts: Minimal PositionVault + Protector (demo repay/boost), built with Foundry; events feed the indexer.Indexing: The Graph subgraph for RiskEvent/position changes; GraphQL powers the UI. The Graph +1Automation: Chainlink Automation checks thresholds and triggers “auto-protect”. Chainlink DocumentationBackend: Go API with WebSocket push for live updates; Prometheus/Grafana for observability.Frontend: Next.js 14 + wagmi/viem; “Protect Me” CTA with before/after comparison.Start Fresh & AI: New repo started during the event; AI (Claude/ChatGPT) used for scaffolding/docs/tests with clear attribution in AI_USAGE.md.

Hackathon

ETHOnline 2025

2025

Contributors