The World's First Reactive Liquidity Protocol & Prediction Market
Vision • Features • Architecture • Quick Start • Roadmap
Prediction markets force traders to take on massive volatility risk. On traditional EVM networks, risk management (like a Stop-Loss) requires slow keeper bots, Chainlink Automation subscriptions, and inherently suffers from multi-block delays. This creates massive MEV vulnerabilities and catastrophic slippage.
PulseGuard solves this using Somnia's Native Reactivity. Our platform executes risk triggers (Stop-Loss/Take-Profit) within the exact same block as the price update. Execution is an atomic, reactive consequence of the blockchain itself. Zero keeper bots. Zero race conditions. Zero slippage.
Traders can set precise downside limits before entering a pool. Powered by Somnia, these triggers fire instantly without relying on third-party automation infrastructure.
PulseGuard is a two-sided AMM. Anyone can act as a Market Maker by seeding STT into the YES or NO pools. LPs underwrite the traders and earn a 0.5% royalty on every trade, transforming prediction markets into yield-generating assets.
A fully decentralized market creation engine. For any user-created market (ID > 40), the frontend bypasses local storage and dynamically reads the metadata directly from the Somnia ledger. Infinite scaling, zero bottlenecks.
graph TD
subgraph "The PulseGuard Ecosystem"
T[Traders] -->|Capital + Guard Triggers| C((PulseGuard Core Engine))
LP[Liquidity Providers] -->|Underwrite Pools| C
end
subgraph "Somnia Native Layer"
C -->|Oracle State Change| R{Reactivity Reactor}
R -->|Same-Block Trigger| E[Atomic Execution]
E -->|0.5% Protocol Fee| LP
E -->|Zero-Slippage Exit| T
end
classDef core fill:#4f46e5,stroke:#fff,stroke-width:2px,color:#fff;
classDef actor fill:#0f0f13,stroke:#4f46e5,stroke-width:1px,color:#fff;
classDef react fill:#10b981,stroke:#fff,stroke-width:2px,color:#000;
class C core;
class T,LP actor;
class R,E react;
- Smart Contracts: Solidity (Deployed on Somnia Testnet)
- Frontend: Next.js 14 (App Router), React, TypeScript
- Styling: Tailwind CSS v4, Lucide React, Recharts
- Web3 Integration: Wagmi, Viem
- Deployment: Vercel Production Build
pulseguard/
├── frontend/
│ ├── src/
│ │ ├── app/ # Next.js App Router (Pages & Layouts)
│ │ ├── components/ # Reusable UI (BetForm, SquadBoard, etc.)
│ │ ├── lib/ # Web3 Configs, Constants, and Utils
│ │ └── styles/ # Global CSS and Tailwind config
│ ├── public/ # Static assets
│ └── package.json
└── README.md
- Node.js (v18 or higher)
- Git
- A Web3 Wallet (MetaMask, Rabby) configured for the Somnia Testnet
-
Clone the repository:
git clone https://github.com/Vinaystwt/pulseguard.git cd pulseguard/frontend -
Install dependencies:
npm install
-
Set up Environment Variables: Create a
.env.localfile in thefrontenddirectory (if required for custom RPCs):NEXT_PUBLIC_SOMNIA_RPC_URL=https://dream-rpc.somnia.network/ NEXT_PUBLIC_CONTRACT_ADDRESS=0x1850d2a31CB8669Ba757159B638DE19Af532ba5e
-
Run the development server:
npm run dev
Navigate to
http://localhost:3000to interact with the protocol locally.
- MVP Deployment on Somnia Testnet
- Atomic Guard Mode Integration
- 0.5% LP Royalty Implementation
- Dynamic AMM Bonding Curves
- Multi-Asset Collateral Support (USDC, wETH)
- Decentralized Identity Integration for Pulse Scores
- Somnia Mainnet Deployment
Built solo by Vinay. Designed and engineered by a full-stack generalist and DeFi architect specializing in rapid prototyping, high-fidelity interfaces, and building next-generation Web3 infrastructure.
Built for the Somnia Reactivity Hackathon