Shadow Arena #018: Panoptic
You built the Uniswap V3 concentrated-liquidity engine from scratch. Panoptic is not a fork of it — it is the layer that got shipped on top. Its SemiFungiblePositionManager mints and burns REAL Uniswap V3 liquidity as ERC-1155 option legs, turning your pool, position, and fee-growth machinery into a perpetual options market. That means the bugs live in the seam: code that drives the pool you wrote, reads the oracle you wrote, and deploys through the factory you wrote — but adds premium settlement, collateral shares, and CREATE2 pool cloning on top. This is the next layer up. 5 representative findings (2 H + 3 M).
Scope (4378 SLOC)
| File | SLOC |
|---|---|
| contracts/SemiFungiblePositionManager.sol | 724 |
| contracts/PanopticPool.sol | 1162 |
| contracts/CollateralTracker.sol | 792 |
| contracts/PanopticFactory.sol | 249 |
| contracts/libraries/PanopticMath.sol | 573 |
| contracts/libraries/Math.sol | 417 |
| contracts/types/TokenId.sol | 305 |
| contracts/types/LeftRight.sol | 156 |
Documentation
Part of the Uniswap V3 Path
This shadow audit connects to the Uniswap V3 Build module. Students who built the concentrated-liquidity pool have an advantage because they understand tick accounting, the swap loop, fee growth, the observation oracle, and callback-based payment.
View Build Module