π ETHGlobal Submission - Uniswap v4 Privacy DeFi Track
OrcaSignal provides transparent, explainable risk analysis for DeFi markets, protecting users from information asymmetry while preserving privacy through on-chain verifiable risk intelligence.
Problem: DeFi markets suffer from information asymmetry where retail traders are exploited by informed actors with privileged access to risk data.
Solution: Privacy-preserving risk intelligence that levels the playing field through:
- π No identity tracking - Analyze patterns, not people
- π Explainable algorithms - Every risk score has clear reasoning
- π‘οΈ Proactive protection - Block/warn high-risk swaps before execution
- β On-chain verifiability - All risk data is transparent and auditable
Our Uniswap v4 Hook provides real-time swap validation:
// Risk-based swap protection
function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)
external returns (bytes4)
// Transparent risk assessment
function analyzeSwapRisk(PoolKey calldata key)
external returns (bool shouldBlock, string memory riskReason)- Holder Concentration: Detects manipulation without revealing identities
- Liquidity Ownership: Identifies risks without tracking individual LPs
- Governance Capture: Analyzes voting power distribution transparently
- Node.js 16+
- Git
git clone [repository-url]
cd orcasignal-v2
npm run install:all# Start backend (port 3003)
npm run backend:dev
# Start frontend (port 3000)
npm run frontend
# Or run both
npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:3003
- OrcaSignalRegistry:
0xDD5bFC1750eB847284E61dE6529C50b195A6F880 - Network: Sepolia Testnet
- Explorer: View on Etherscan
- Connect Wallet - MetaMask or demo wallet
- Analyze Token - Enter any token address (try sample tokens)
- View Risk Analysis - See explainable risk factors
- Uniswap Hook Demo - See how swaps would be validated
- Submit to Contract - Store risk data on-chain
src/
βββ OrcaSignalRegistry.sol # Core risk analysis & storage
βββ OrcaSignalHook.sol # Uniswap v4 Hook integration
βββ YellowSessionManager.sol # Gasless interactions
backend/
βββ server.js # Express API server
βββ services/
β βββ riskAnalyzer.js # Risk calculation engine
β βββ contractService.js # Blockchain interactions
frontend/src/
βββ App.js # Main application
βββ components/
β βββ RiskAnalysis.js # Risk visualization
β βββ WalletConnect.js # Wallet integration
β βββ RiskThresholds.js # Threshold configuration
βββ services/
βββ ensService.js # ENS name resolution
βββ yellowService.js # Yellow Network integration
# Using npm scripts (works without Foundry)
npm run build
# Or with Foundry (if installed)
forge buildforge test# Deploy to Sepolia
npm run deploy:sepolia- No whale identity tracking
- Pattern analysis without personal data
- Transparent algorithms with explainable results
- Holder Concentration (0-100): Token distribution analysis
- Liquidity Ownership (0-100): LP concentration assessment
- Governance Capture (0-100): Voting power distribution
- Real-time swap validation
- Configurable risk thresholds
- Transparent blocking/warning system
- Yellow Network: Gasless interactions
- ENS: Human-readable addresses
- Real-time Stats: Dynamic dashboard updates
- Information Symmetry: Access to institutional-grade risk intelligence
- Transparent Protection: Clear explanations for all risk assessments
- Privacy Preservation: No personal data collection or tracking
- Reduced Adverse Selection: Prevents exploitation of uninformed traders
- Better Price Discovery: Removes information asymmetries
- Increased Confidence: Transparent risk builds market trust
- Composable Security: Other protocols can integrate OrcaSignal data
- Proactive Risk Management: Identify threats before they materialize
- Verifiable Protection: All assessments are auditable on-chain
[Link to 3-minute demo video showing:]
- Problem explanation and solution overview
- Live risk analysis demonstration
- Uniswap v4 Hook integration
- Privacy-preserving design principles
- Market impact and benefits
- Smart Contracts: Solidity 0.8.24, Foundry
- Backend: Node.js, Express, ethers.js
- Frontend: React, ethers.js, Lucide icons
- Blockchain: Ethereum, Sepolia testnet
- Integrations: Uniswap v4, Yellow Network, ENS
All documentation is contained in this README. The project is self-documenting with clear code structure and inline comments.
This project was built for ETHGlobal hackathon. For questions or collaboration:
- GitHub: [Repository Issues]
- Demo: [Live Application Link]
- Video: [Demo Video Link]
MIT License - Built for HackMoney 2026
π OrcaSignal: Privacy-preserving DeFi risk intelligence that protects users without compromising transparency.