About
## Wave 1 submission
Built as a production-style monorepo with: -Hardhat smart contracts: PrivateOrderBook, PrivateAMM, PrivateVault -Next.js 14 frontend with wagmi v2 and RainbowKit -CoFHE integration for encrypted order inputs
Implemented the core swap flow:
-Correct ETH ↔ USDC conversion -6-decimal fixed-point handling for encrypted amounts -98% min-out protection -Better validation and error handling
Improved reliability and UX:
-Chain checks and automatic network switching -Deployment/address checks before swap submission -Transaction simulation and receipt handling -Cleaner navigation, warnings, and wallet-state messaging
## Wave 5 submission
PrivateDEX delivers a working encrypted swap protocol on Arbitrum Sepolia In progress: automated relayer, vault UI, live pool stats
Contracts deployed:
- PrivateOrderBook — swap intents stored as euint64 encrypted handles, FHE.allowThis() and FHE.allowSender() enforced on every mutation - PrivateAMM — FHE.gte() compares encrypted amounts on ciphertext, FHE.select() sets conditional fill without ever decrypting values - PrivateVault — encrypted balance custody with FHE.add() and FHE.sub()
What is working:
- Swap amounts encrypted client-side via cofhejs before hitting mempool - Permit-gated unseal means only the trading wallet reveals its own fill amount - ETH to USDC swap with uint64-safe encrypted amounts - Chain validation and automatic network switching to Arbitrum Sepolia - Transaction simulation before write to prevent failed transactions - CoFHE environment auto-detection across TESTNET, MOCK, and LOCAL
UI shipped:
- Swap page with live status flow: Idle, Encrypting, Submitting, Order Placed - Orders page with all amounts displayed as Hidden and a permit-gated Reveal button - Before vs After panel showing what MEV bots see on a normal DEX versus PrivateDEX - Dark theme UI across Swap, Orders, and Pool pages
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.




