Build Real Protocols. From Scratch.
Pick a production protocol. Write every function yourself, guided by starter code with TODO blocks. Pass automated tests that verify your implementation. Walk away understanding every line of the protocol you want to fork.
1. Learn
Each section starts with theory. How the protocol works, why it was designed this way, what the key invariants are.
+5 Lynx per section
2. Build
You get starter code with the contract structure. State variables, events, function signatures. Your job: write the function bodies.
+15 Lynx per section
3. Test
Automated tests verify your implementation. Did you apply the fee correctly? Is the reentrancy guard in place? Instant feedback.
Must pass to proceed
4. Complete
When all sections pass, you have a complete, multi-contract protocol. Factory, Pair, Router. All connected. All yours.
+50 Lynx for Final Build
Why build it instead of forking it?
Most builders clone a protocol, change the fee, swap the logo, and deploy. But they don't understand why the constant product formula uses 997/1000. They don't know why minimum liquidity exists. They can't modify the core without breaking invariants they never knew about. Building it yourself, function by function, means you know exactly what to keep, what to change, and what to remove when you build your own protocol on top of it.
Available Now
Constant product AMM. Factory, Pair, Router, Library. The protocol most DeFi forks are built on.
The most forked lending protocol. cTokens, Comptroller risk engine, interest rates, borrowing, and liquidation. 18 sections.
The most-forked vault aggregator. Multi-strategy capital allocation, locked-profit JIT defense, first-depositor and donation defenses, the harvest cycle. 18 sections.
Coming Soon
More protocols are being built. Each one follows the same process: learn, build, test, complete.
Building Uniswap V3
Concentrated liquidity. Ticks, positions, oracle integration. The next level of AMM design.
Building QuantAMM
Temporal function AMMs with dynamic weights. Advanced DeFi architecture for research-minded builders.
Common Questions
What does 'build from scratch' mean?
How are my answers verified?
What do I walk away with?
How long does it take?
Why not just fork the protocol?
After you build it, audit it.
Once you complete a protocol, the Shadow Arena unlocks a real fork from a past security contest. Find the vulnerabilities. Get scored. Learn what you missed.
Explore the Shadow Arena