Skip to content

feat: Prop AMM Challenge Visualizer#2

Open
muttoni wants to merge 7 commits intomainfrom
prop-amm
Open

feat: Prop AMM Challenge Visualizer#2
muttoni wants to merge 7 commits intomainfrom
prop-amm

Conversation

@muttoni
Copy link
Owner

@muttoni muttoni commented Feb 15, 2026

Summary

Adds a new visualization mode for the Prop AMM Challenge at /prop-amm.

Key Differences from Original

Aspect Original Prop AMM
Interface Returns (bidFee, askFee) Returns output_amount directly
Normalizer Fixed 30 bps Variable: 30-80 bps fee, 0.4-2.0x liquidity
Volatility 0.088-0.101%/step 0.01-0.70%/step (much wider)
Arb/Routing Closed-form Golden-section search

New Files

  • lib/prop-sim/ - Simulation engine, math, types
  • lib/prop-strategies/builtins.ts - 4 built-in strategies
  • workers/prop-simulation.worker.ts - Web worker
  • app/prop-amm/page.tsx - New route
  • components/PropCodePanel.tsx - Rust code display
  • components/PropMarketPanel.tsx - Market metrics with normalizer config

Built-in Strategies

  1. Starter (500 bps) - Matches the official starter
  2. Baseline (30 bps) - Matches normalizer minimum
  3. Tight (10 bps) - Aggressive spread
  4. Wide (100 bps) - Conservative spread

Metrics

  • Shows implied fees (back-calculated from trades)
  • Displays normalizer config (fee + liquidity multiplier)
  • Shows per-simulation volatility regime

Preview

Access at /prop-amm after deployment.


Ref: Prop AMM Challenge Spec

- Add /prop-amm route with new simulation engine
- Implement golden-section arbitrage and order routing
- Add 4 built-in strategies (500, 100, 30, 10 bps)
- Create PropCodePanel and PropMarketPanel components
- Add variable normalizer (30-80 bps, 0.4-2.0x liquidity)
- Support wider volatility range (0.01-0.70% per step)
- Track implied fees from trades instead of explicit fees
@vercel
Copy link

vercel bot commented Feb 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ammvisualizer Ready Ready Preview, Comment Feb 16, 2026 0:37am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments