Found Academy useful? A $5 donation by May 14 helps us ship more, faster. Every donor counts (QF matching).

Donate
Shadow Arena/Shadow Arena #003: Velodrome Finance
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)

FileSLOC
contracts/contracts/Pair.sol416
contracts/contracts/PairFees.sol23
contracts/contracts/Router.sol370
contracts/contracts/VelodromeLibrary.sol89
contracts/contracts/factories/PairFactory.sol82
contracts/contracts/Gauge.sol545
contracts/contracts/Bribe.sol85
contracts/contracts/Voter.sol304

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 Module
Duration4 days
Total Findings13
Scope1914 SLOC
PriceFree