DEX/AMMAdvanced
Shadow Arena #003: Velodrome Finance
Velodrome is a next-generation AMM on Optimism, forked from Solidly (ve(3,3) model). It combines a Uniswap V2-style constant product AMM with a vote-escrow tokenomics layer where veNFT holders direct emissions to liquidity pools. The AMM core is familiar. The bugs are all in the novel extensions.
Scope (1914 SLOC)
| File | SLOC |
|---|---|
| contracts/contracts/Pair.sol | 416 |
| contracts/contracts/PairFees.sol | 23 |
| contracts/contracts/Router.sol | 370 |
| contracts/contracts/VelodromeLibrary.sol | 89 |
| contracts/contracts/factories/PairFactory.sol | 82 |
| contracts/contracts/Gauge.sol | 545 |
| contracts/contracts/Bribe.sol | 85 |
| contracts/contracts/Voter.sol | 304 |
Documentation
Part of the Uniswap V2 Path
This shadow audit connects to the Uniswap V2 Build module. Students who completed the CFAMM build have an advantage because they understand the core architecture.
View Build ModuleDuration4 days
Total Findings13
Scope1914 SLOC
PriceFree