WhisperWaffle Whitepaper
Version 1.0
Last updated: November 10, 2025
Table of Contents
1. Executive Summary
WhisperWaffle is a privacy-first decentralized exchange (DEX) built on the Aleo blockchain, leveraging zero-knowledge proofs to enable secure, private token swaps and liquidity provision. Unlike traditional DEXs that expose transaction details on public blockchains, WhisperWaffle utilizes Aleo's privacy-preserving smart contracts to protect user transaction data while maintaining full verifiability.
Our platform combines the benefits of automated market maker (AMM) protocols with Aleo's advanced privacy features, creating a truly private DeFi experience. WhisperWaffle enables users to swap tokens, provide liquidity, and earn fees—all while maintaining transaction privacy through zero-knowledge cryptography.
2. Introduction
Decentralized finance (DeFi) has revolutionized the financial landscape by enabling peer-to-peer financial services without intermediaries. However, most DeFi platforms operate on transparent blockchains where all transactions are publicly visible, exposing users to privacy risks, front-running, and transaction analysis.
WhisperWaffle addresses these privacy concerns by building on the Aleo blockchain, which uses zero-knowledge proofs to enable private, verifiable transactions. Our platform provides a complete DEX experience with swap functionality, liquidity pools, and token management—all while protecting user privacy.
The name "WhisperWaffle" reflects our commitment to privacy ("whisper") while maintaining a friendly, approachable brand identity. We believe that DeFi should be both powerful and private, enabling users to trade and interact with confidence.
3. Problem Statement
3.1 Privacy Concerns in DeFi
Traditional DEXs on transparent blockchains face several privacy challenges:
- Transaction Visibility: All swaps, amounts, and wallet addresses are publicly visible on-chain
- Front-Running: Malicious actors can observe pending transactions and execute trades ahead of users
- Transaction Analysis: Sophisticated analysis can link wallet addresses and reveal trading strategies
- Financial Privacy: Users' financial activities and holdings are exposed to the public
3.2 Aleo Ecosystem Needs
The Aleo blockchain ecosystem requires native DeFi infrastructure:
- Lack of established DEX platforms on Aleo
- Need for privacy-preserving token swaps
- Requirement for liquidity provision mechanisms
- Demand for user-friendly DeFi interfaces
4. Solution Overview
WhisperWaffle provides a comprehensive solution to privacy and DeFi infrastructure challenges:
4.1 Privacy-First Architecture
By leveraging Aleo's zero-knowledge proofs, WhisperWaffle enables:
- Private token swaps without exposing amounts or addresses
- Verifiable transactions that maintain privacy
- Protection against front-running and transaction analysis
- Financial privacy for all users
4.2 Complete DEX Functionality
WhisperWaffle offers a full suite of DeFi features:
- Token-to-token swaps with competitive rates
- Liquidity pools for any token pair
- Automated market maker (AMM) pricing
- Liquidity provider fee distribution
- Token management and balance tracking
5. Technical Architecture
5.1 Blockchain Layer
WhisperWaffle is built on the Aleo blockchain, which provides:
- Zero-Knowledge Proofs: Enables private, verifiable transactions
- Smart Contracts: Aleo zk-programs for on-chain logic
- Privacy by Default: Transaction details are hidden by default
- Scalability: Efficient proof generation and verification
5.2 Smart Contract Design
Our smart contracts (zk-programs) handle:
- Pool Management: Creation, updates, and state management of liquidity pools
- Swap Execution: Token swaps with AMM pricing and fee calculation
- Liquidity Operations: Adding and removing liquidity from pools
- LP Token Management: Minting and burning liquidity provider tokens
- Fee Distribution: Calculating and distributing swap fees to liquidity providers
5.3 Frontend Architecture
The WhisperWaffle frontend is built with:
- Next.js: React framework for server-side rendering and routing
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- DaisyUI: Component library with theme support
- Aleo Wallet Adapter: Integration with Aleo wallets (Leo Wallet)
5.4 Data Flow
When a user performs a swap:
- User connects wallet and selects tokens to swap
- Frontend calculates expected output using AMM formula
- User confirms transaction in wallet
- Transaction is submitted to Aleo network
- Smart contract executes swap with privacy-preserving proofs
- Transaction is finalized on-chain
- Frontend updates to reflect new balances
6. AMM Mechanics
6.1 Constant Product Formula
WhisperWaffle uses the constant product market maker (CPMM) model, similar to Uniswap. The core formula is:
x * y = kWhere:
x= Reserve of token X in the pooly= Reserve of token Y in the poolk= Constant product (must remain constant)
6.2 Swap Calculation
When swapping token X for token Y, the output amount is calculated as:
amountOut = (amountInWithFee * reserveOut) / (reserveIn + amountInWithFee)Where:
amountInWithFee= Input amount after applying swap fee (typically 0.3%)reserveIn= Current reserve of input tokenreserveOut= Current reserve of output token
6.3 Swap Fee
Each swap incurs a fee (typically 0.3% or 30 basis points) that is:
- Deducted from the input amount before calculating output
- Added back to the liquidity pool
- Distributed to liquidity providers proportionally to their share
6.4 Price Impact
Large swaps relative to pool size can cause price impact (slippage). The price impact is calculated as:
priceImpact = (amountIn / reserveIn) * 100Higher price impact means the swap will move the price more significantly, resulting in less favorable rates.
6.5 Liquidity Provision
When providing liquidity:
- Users deposit equal value of both tokens in a pair
- LP tokens are minted representing their share of the pool
- LP tokens can be burned to withdraw liquidity
- Fees accrue to the pool and increase the value of LP tokens
7. Features
7.1 Token Swaps
WhisperWaffle enables seamless token swaps:
- Swap any token for any other token (if a pool exists)
- Real-time price quotes and slippage protection
- Minimum output guarantees to protect against unfavorable price movements
- Private transaction execution on Aleo
- Low fees and competitive rates
7.2 Liquidity Pools
Users can create and manage liquidity pools:
- Create new pools for any token pair
- Add liquidity to existing pools
- Remove liquidity at any time
- Earn fees from all swaps in your pools
- Track LP token balances and pool statistics
7.3 Token Management
Comprehensive token management features:
- View token balances across all supported tokens
- Add custom tokens by token ID
- Token discovery and verification
- Transaction history tracking
7.4 User Interface
WhisperWaffle features an intuitive, user-friendly interface:
- Clean, modern design with waffle-themed branding
- Responsive layout for desktop and mobile
- Theme support (light/dark modes)
- Real-time price updates and pool statistics
- Transaction status tracking
8. Security & Privacy
8.1 Privacy Features
WhisperWaffle leverages Aleo's privacy capabilities:
- Zero-Knowledge Proofs: Transactions are verified without revealing details
- Private Transactions: Swap amounts and addresses are hidden
- No Front-Running: Private transactions prevent MEV attacks
- Financial Privacy: Users' trading activities remain confidential
8.2 Security Measures
We implement multiple security layers:
- Smart Contract Audits: Regular security reviews of zk-programs
- Non-Custodial: Users maintain full control of their funds
- Wallet Integration: Secure wallet connections via Aleo Wallet Adapter
- Input Validation: Comprehensive validation of all user inputs
- Slippage Protection: Minimum output guarantees prevent unfavorable swaps
8.3 Risk Considerations
Users should be aware of potential risks:
- Smart Contract Risk: Bugs or vulnerabilities in smart contracts
- Impermanent Loss: Losses when providing liquidity due to price changes
- Market Risk: Cryptocurrency price volatility
- Liquidity Risk: Low liquidity pools may have high slippage
- Technology Risk: Network issues or blockchain failures
9. Roadmap
9.1 Current Status (v1.0)
WhisperWaffle is currently live on Aleo Mainnet with:
- âś“ Token swap functionality
- âś“ Liquidity pool creation and management
- âś“ LP token minting and burning
- âś“ Fee distribution to liquidity providers
- âś“ User-friendly web interface
- âś“ Wallet integration (Leo Wallet)
9.2 Future Enhancements
Planned features and improvements:
- Advanced analytics and pool statistics
- Multi-hop routing for better swap rates
- Limit orders and advanced order types
- Governance token and DAO structure
- Mobile application
- Additional wallet integrations
- Cross-chain bridge integration
- Yield farming and staking mechanisms
10. Conclusion
WhisperWaffle represents a significant step forward in privacy-preserving DeFi. By combining the proven AMM model with Aleo's zero-knowledge technology, we've created a DEX that offers both functionality and privacy.
As the Aleo ecosystem continues to grow, WhisperWaffle will serve as a foundational DeFi infrastructure, enabling private, secure, and efficient token trading for all users. We believe that financial privacy is a fundamental right, and WhisperWaffle makes it accessible to everyone.
We invite the community to join us in building the future of private DeFi. Whether you're a trader, liquidity provider, or developer, there's a place for you in the WhisperWaffle ecosystem.
11. Contact & Resources
Get in Touch
- Website: whisperwaffle.com
- Email: contact@venomlabs.xyz
- GitHub: github.com/mikenike360
- Smart Contract: whisper_waffle_swap_v3.aleo (Aleo Mainnet)
Additional Resources
- Terms & Conditions
- Privacy Policy
- Aleo Documentation: developer.aleo.org