Loading video player...
🛡️ SafeVault: Reactive Asset Protection on Somnia Network SafeVault is a next-generation "Reactive" smart contract vault built for the Somnia Shannon Testnet Hackathon. Unlike traditional DeFi vaults that require manual intervention or centralized liquidation bots to move funds during a crash, SafeVault is natively automated. Using Somnia’s sub-second event triggers, SafeVault monitors on-chain price feeds and automatically executes protection logic the millisecond a safety threshold is breached. 🚀 Live Links: 🔹 Live Dashboard: https://somnia-safevault.vercel.app/ 🔹 GitHub Repository: https://github.com/Samuelowoode/somnia-safevault 🔹 Verified Contract: 0x95E6b1f68aD870C13C94dbB8AEE285AfC7d19749 🧠 Technical Highlights: Reactive Logic: Implements the Somnia onEvent interface to handle asynchronous price updates. Automated Protection: Zero-latency state changes triggered by protocol-level events. Modern Stack: Built with Solidity 0.8.30, Hardhat 3, Next.js 16, and Ethers.js v6. 🏗️ How It Works: The contract subscribes to specific event topics (Price Feeds). A safetyThreshold is defined (set to $2,500 for this demo). When a price update breaches the threshold, Somnia's execution layer triggers the onEvent callback. The vault automatically locks deposits to prevent loss during volatility. Connect with me: X/Twitter: https://x.com/Samlookkrypt #Somnia #Web3 #DeFi #SmartContracts #Blockchain #Solidity #BuildOnSomnia #CryptoSecurity