Minimax
Multi-DEX LP Battle Arena on Arbitrum where liquidity providers compete head-to-head in time-bound PvP matches.
Videos
Tech Stack
Description
Minimax: Multi-DEX LP Battle Arena where liquidity providers compete head-to-head — with Stylus scoring, on-chain ELO rankings, and an autonomous settlement agent.
Arbitrum Open House NYC Buildathon | Uniswap V4 Hooks × Arbitrum Stylus × Autonomous Agent
LIVE ON ARBITRUM SEPOLIA TESTNET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EXECUTIVE SUMMARY
Minimax is a decentralized PvP battle arena for LP positions, built to solve one core problem: over half of liquidity providers lose money silently with no feedback, no competition, and no way to improve.
Instead of LP positions sitting idle in suboptimal ranges, Minimax puts them against real opponents in time-bound battles — where skill is measured, ranked, and rewarded.
The platform combines:
1. Cross-DEX battle system (Uniswap V4 vs Camelot V3)
2. Custom Uniswap V4 Hook for position locking during battles
3. Gas-efficient scoring via Arbitrum Stylus (Rust/WASM)
4. On-chain ELO leaderboard with chess-style ratings
5. Autonomous agent with cross-chain intelligence
Feature :
1. Uniswap V4 — Custom BattleVaultHook, PositionManager integration, Permit2 flow
2. Arbitrum Stylus — ScoringEngine and Leaderboard contracts in Rust/WASM
3. Autonomous Agent — MONITOR → DECIDE → ACT loop with auto-settlement
4. Cross-DEX — Adapter pattern normalizing V4 and Camelot positions
Status:
- Full E2E battle lifecycle proven on-chain (create → join → compete → resolve)
- Uniswap V4 Hook deployed and functional
- Stylus scoring engine and ELO leaderboard live
- Autonomous agent handle Monitor -> Decide -> Act
- Production frontend deployed on Netlify
- Contracts verified on Arbiscan
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROBLEM → SOLUTION
1. LP Provider Problems
54.7% of concentrated liquidity providers lose money (impermanent loss > fees). LP positions are treated as set-and-forget — but concentrated liquidity demands active strategy.
2. Zero feedback on performance
No way to know if your position is good or bad. No social layer, no competition, no incentive to optimize ranges. Billions locked in suboptimal ranges with no feedback mechanism
3. DeFi Ecosystem Problems
Capital inefficiency at scale across Arbitrum's $2.2B DeFi TVL. No cross-DEX performance benchmarking exists. LP skill is invisible — no reputation system, no ranking. Expired protocol positions go unsettled for hours or days
Minimax Solution
1. PvP battles between LP positions across different DEXes
2. Range Battle — whoever stays in-range longer wins (tests range selection skill)
3. Fee Battle — whoever earns more fees relative to LP value wins (tests capital efficiency)
4. Cross-DEX adapter pattern — Uniswap V4 position can battle Camelot V3 position
5. On-chain ELO rating system via Arbitrum Stylus (chess-style ranking)
6. Autonomous agent auto-settles expired battles for 1% resolver reward
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TECHNICAL INNOVATION
1. Custom Uniswap V4 Hook (BattleVaultHook)
- Hooks into BEFORE_ADD_LIQUIDITY, BEFORE_REMOVE_LIQUIDITY, AFTER_SWAP
- Locks LP positions during active battles — prevents withdrawal until resolution
- Unlocks positions when battle resolves — winner and loser both get NFTs back
- First V4 Hook to add gamification layer to LP positions
2. Cross-DEX Adapter Pattern (IDEXAdapter)
- UniswapV4Adapter — PositionManager, Permit2, PoolManager extsload
- CamelotAdapter — Algebra NonfungiblePositionManager, Factory Standardized interface: getPosition(), isInRange(), getCurrentTick(), collectFees(), transferPositionIn/Out()
- Modular — adding a new DEX is just deploying a new adapter contract
3. Arbitrum Stylus Scoring (Rust/WASM)
- ScoringEngine — Range scoring with tick tightness bonus, fee yield normalization, cross-DEX fairness factors
- Leaderboard — ELO rating system (K=32, floor=100), player stats, win/loss tracking
- All math uses U256 with 1e18 precision — no floating point, fully deterministic
- Gas-efficient: Rust/WASM execution costs significantly less than equivalent Solidity
4. Autonomous Settlement Agent
- MONITOR → DECIDE → ACT strategy loop every 30 seconds
- Auto-resolves expired battles for 1% resolver reward
- Pool state analysis via PoolManager extsload + Camelot globalState()
- Win probability computation for active battles
- Advisory REST API with 12+ endpoints for battle data, player stats, recommendations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEPLOYED CONTRACTS (ARBITRUM SEPOLIA)
BattleArena 0x6cfFE36cC727A649bC8D269CbD675552d0A550F6
- Core battle management: create, join, updateStatus, resolve.
- Supports Range and Fee battle types across multiple DEXes.
- Verified on Arbiscan.
UniswapV4Adapter 0xca6118BD65778C454B67B11DE39B9BB881915b40
- Normalizes V4 positions via PositionManager.
- Reads pool state via extsload.
- Handles Permit2 approval flow.
- Verified on Arbiscan.
CamelotAdapter 0x5442068A4Cd117F26047c89f0A87D635112c886E
- Normalizes Camelot/Algebra V3 positions.
- Reads pool state via globalState().
- Standard ERC721 approval flow.
BattleVaultHook 0x51ed077265dC54B2AFdBf26181b48f7314B44A40
- Custom Uniswap V4 Hook.
- Locks positions during battles, unlocks on resolution.
- Flags: BEFORE_ADD_LIQUIDITY, BEFORE_REMOVE_LIQUIDITY, AFTER_SWAP.
ScoringEngine (Stylus — Rust/WASM) 0xd34fFbE6D046cB1A3450768664caF97106d18204
- Range scoring with tick tightness bonus (up to 20%), fee yield normalization, cross-DEX fairness factors, winner determination.
Leaderboard (Stylus — Rust/WASM) 0x7FEB2cf23797Fd950380CD9aD4B7D4cAd4B3C85B
- On-chain ELO rating system. K-factor=32, floor=100.
- Tracks wins, losses, total battles, total value won per player.
Infrastructure
V4 PoolManager: 0xFB3e0C6F74eB1a21CC1Da29aeC80D2Dfe6C9a317
V4 PositionManager: 0xAc631556d3d4019C95769033B5E719dD77124BAc
Permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3
Camelot Factory: 0xaA37Bea711D585478E1c04b04707cCb0f10D762a
Camelot NFT Manager: 0x79EA6cB3889fe1FC7490A1C69C7861761d882D4A
WETH: 0x980B62Da83eFf3D4576C647993b0c1D7faf17c73
USDC (Mintable): 0xb893E3334D4Bd6C5ba8277Fd559e99Ed683A9FC7
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ARCHITECTURE
Frontend (React + Vite + Wagmi)
→ Wallet Connection (MetaMask, WalletConnect)
→ Smart Contracts (Arbitrum Sepolia)
→ BattleArena ← UniswapV4Adapter ← V4 PositionManager + BattleVaultHook
→ BattleArena ← CamelotAdapter ← Camelot NFT Manager
→ ScoringEngine (Stylus/WASM) — battle scoring
→ Leaderboard (Stylus/WASM) — ELO ratings
→ Autonomous Agent (TypeScript + Hono)
→ PoolAnalyzer — V4 extsload + Camelot globalState()
→ REST API — advisory endpoints
Key Properties:
Cross-DEX composability | Stylus gas efficiency | Autonomous settlement | On-chain reputation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY ARBITRUM
Minimax is built on Arbitrum to unlock the full potential of cross-DEX LP competition:
- Uniswap V4 Hook support → custom BattleVaultHook for position locking during battles
- Arbitrum Stylus → gas-efficient scoring and ELO computation in Rust/WASM
- Largest L2 DeFi ecosystem → $2.2B TVL, $129M daily DEX volume, 116K daily active addresses
- Native Camelot DEX → largest Arbitrum-native exchange with $120M+ TVL and 75+ partners
- Low gas fees → essential for frequent battle updates and settlements
- EVM + Stylus composability → Solidity contracts call Rust/WASM scoring seamlessly
- Strong builder ecosystem → Arbitrum Open House, grants, STIP programs
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MARKET OPPORTUNITY
TAM: $2.2 Billion — Total Arbitrum DeFi TVL (DefiLlama, Feb 2026)
SAM: $550 Million — Concentrated liquidity DEX TVL on Arbitrum (Uniswap + Camelot + others)
SOM: $220 Million — Realistically obtainable battle TVL from active LP managers in Year 1
Key data points:
- 54.7% of Uniswap V3 LPs in volatile pairs lose money (MEXC Research)
- Uniswap V4 cumulative volume: $180B+ since January 2025 launch
- Camelot: $30B cumulative volume, 75+ ecosystem partners
- V4 Hook ecosystem is greenfield — first mover advantage for gamification hooks
- Global gamification market: $36B in 2026, growing 25% CAGR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ROADMAP
Phase 1 — MVP Build (Completed — Q1 2026)
- BattleArena with cross-DEX adapter pattern
- Custom Uniswap V4 BattleVaultHook
- Stylus ScoringEngine + Leaderboard (Rust/WASM)
- Full React frontend (8 pages: Lobby, Battles, Faucet, Liquidity, Leaderboard, Agent, Profile)
- Autonomous agent with MONITOR → DECIDE → ACT loop
- Full E2E battle lifecycle proven on Arbitrum Sepolia
Phase 2 — Cross-DEX Mechanism (Q2 2026)
- Camelot V3 battle testing and optimization
- Additional DEX adapters (Trader Joe, SushiSwap)
- Fee Battle V2 with real-time fee tracking - Tournament Mode — weekly structured brackets with prize pools
Phase 3 — Mainnet Launch (Q3 2026)
- Security audit (Code4rena or Sherlock)
- Arbitrum One mainnet deployment
- Advanced battle analytics dashboard
- Mobile-responsive optimization
Phase 4 — Multi-Chain Expansion (Q4 2026)
- Base and Optimism deployment
- Cross-chain battles (Arbitrum V4 vs Base V4)
- Team/guild battles
- Automated market-making battle strategies
Phase 5 — Protocol Maturity (Q1 2027)
- Governance token launch
- Agent marketplace for custom strategies
- Institutional LP battle leagues
- SDK for third-party integrations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Minimax transforms how liquidity providers engage with DeFi.
LP positions become competitive instruments, not idle capital
Skill is measured on-chain with ELO — not just capital size
Cross-DEX battles create the first LP performance benchmark
Autonomous agents ensure fair, timely settlement with rewards
Minimax turns liquidity providing into a skill game.
Every LP position is a statement of skill. Minimax is the arena where that skill is proven.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Tech Stack :
Solidity 0.8.26 + Foundry | Arbitrum Stylus (Rust/WASM) | Uniswap V4 Core + Periphery | React 19 + Vite 7 + Tailwind CSS 4 + Wagmi 3 | TypeScript Agent + Hono 4 | Recharts 3
Live Demo: minimax-lp.netlify.app
GitHub: github.com/capinhoooo/minimax
Progress During Hackathon
- Designed and implemented full BattleArena architecture with cross-DEX adapter pattern (UniswapV4Adapter + CamelotAdapter)
- Built and deployed custom Uniswap V4 BattleVaultHook via CREATE2 address mining for position locking during battles
- Developed ScoringEngine and Leaderboard contracts in Rust/WASM on Arbitrum Stylus — range scoring, fee scoring, ELO ratings
- Implemented complete Permit2 approval flow for V4 LP minting (ERC20 → Permit2 → PositionManager)
- Built production React frontend with 8 pages: Lobby, Battle Arena, Battle Detail, Create Battle, Liquidity, Faucet, Leaderboard, Profile, Agent Dashboard
- Deployed autonomous TypeScript agent with MONITOR → DECIDE → ACT strategy loop
- Proven full E2E battle lifecycle on Arbitrum Sepolia: create battle → join battle → update status → resolve battle → ELO update
- Ran 3 complete battles on testnet with real ELO rating changes (1016 vs 984 after 3 battles)
- All core contracts deployed and verified on Arbiscan
- Production frontend live at minimax-lp.netlify.app
Fundraising Status
Not applicable — Minimax is a hackathon project built for the Arbitrum Open House NYC Buildathon. No external funding raised. Fully bootstrapped during the hackathon period.