About
## Wave 1 submission
🌊 ShadowPool — Wave 1 Deliverables
This wave represents the transition from a conceptual design to a fully functional confidential perpetual DEX integrated with FHE technology. We have delivered the core infrastructure required for private order matching and position management.
1.🏛️ Core Smart Contract Architecture
➤ ShadowPool Matching Engine: Developed the primary contract handling encrypted state for orders and positions. Implemented homomorphic logic to evaluate trade compatibility without decrypting sensitive user data.
➤ Encrypted ERC20 (EUSDC): Built a custom implementation of an encrypted token standard that stores balances as euint64 ciphertexts. This serves as the platform's native margin and settlement currency.
➤ Confidential Margin Management: Implemented a "Lock and Settle" mechanism where margin is transferred into the ShadowPool as an encrypted ciphertext, ensuring that total pool debt and user balances remain private at all times.
2.🔬 Advanced FHE Integration
➤ Homomorphic Logic Pipelines: Replaced traditional conditional branching (if/else) with FHE-native pipelines using FHE. select, FHE.min, and FHE.lte to process trade matches while maintaining 100% data confidentiality.
➤ Sealed State Access: Configured contract permissions to allow users to securely view their own private data (positions, margins) through client-side decryption, utilizing the Fhenix seal patterns.
3.🖥️ High-End Trading Interface
➤ Client-Side Encryption Engine: Integrated fhenix.js within a React/TypeScript frontend. Trade parameters (price, amount, side) are now encrypted directly in the user's browser before being broadcasted to the network.
➤ Real-time Confidential Dashboard: Created a premium, glassmorphism-styled trading interface that provides a seamless UX for interacting with encrypted on-chain state, including real-time order tracking and position status.
➤ Global Trading Visualizer: Implemented a "Global Activity" feed that communicates market momentum without compromising the underlying privacy of individual trades.
4.🛠️ Infrastructure & Scaling
➤ Foundry-Based Tooling: Established a professional development environment for testing and deploying FHE-enabled contracts on Ethereum Sepolia.
➤ Deployment Automation: Created robust deployment scripts for consistent multi-contract setup and initial pool funding.
📦 Deliverables
🌐 Vercel Live Preview: https://shadowpooldex.vercel.app/ 📜 Contract Address (Sepolia): 0x38a10c48DB7b86F8B67AC75427D70EA06A5ab2dd
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





