Unicorn Protocol is the most customisable, lowest-cost AMM ever deployed on Ethereum. This documentation covers everything from a 5-minute quickstart to deep-dives into Horn Hook architecture, contract interfaces, and SDK reference.
Unicorn v1 is live on Ethereum mainnet, Arbitrum, Optimism, Base, Polygon, and Avalanche. Pool Manager addresses are listed in Deployments.
What makes Unicorn different?
Horn Hooks — Inject arbitrary logic at 8 lifecycle points of every pool
Singleton Pool Manager — All pools in one contract. Pool creation from ~$400 to ~$0.40
Flash Accounting — EIP-1153 transient storage; settle all balances in one pass
Native ETH — No WETH wrapping. Trade raw ETH, save ~21k gas per swap
ERC-6909 Claims — Keep surplus tokens as receipts inside the Pool Manager
Dynamic Fees — Hooks can update fees in real-time based on any on-chain signal
Quick Links
Quickstart
Swap tokens in 5 minutes
Build a Hook
Write your first Horn Hook
Getting Started
Quickstart
Install the Unicorn SDK and execute your first swap in under 5 minutes.
Install
bash
npm install @unicorn-protocol/sdk
# or
forge install unicorn-protocol/v1-core