Swap / DEX·Optimism · Mode · Lisk · Bob · Ink
Velodrome
Optimism's flagship ve(3,3) DEX and the original Solidly-derived design that Aerodrome was forked from. v2 adds a unified factory, killable gauges, and Slipstream concentrated-liquidity pools; the Superchain release extends it to additional OP Stack chains.
- 01Optimism-native swaps
- 02stable/volatile AMM LPing
- 03Slipstream concentrated liquidity on OP
- 04veVELO voting and bribe markets
- 05Superchain liquidity routing
- pnpm add viem wagmi
| Variable | Scope | Description |
|---|---|---|
| NEXT_PUBLIC_OPTIMISM_RPC_URL | Client | Optimism mainnet RPC URL used to read Velodrome pool/router state. |
Use Velodrome for swaps and LPing on Optimism (and Velodrome Superchain on additional OP Stack chains). Call the Velodrome v2 `Router` at `0xa062aE8A9c5e11aaA026fc2670B0D65cCc8B2858` with `getAmountsOut(amountIn, routes[])` and `swapExactTokensForTokens(amountIn, amountOutMin, routes[], to, deadline)`, where each `Route` is `{from, to, stable, factory}`. Lock VELO via `VotingEscrow.createLock(amount, lockDuration)` to mint a veVELO NFT; vote weekly on gauges via `Voter.vote(tokenId, pools[], weights[])` to direct emissions and earn bribes. For concentrated liquidity, use the Slipstream `CLPool` and Slipstream `NonfungiblePositionManager`.
- ⚑v1 and v2 are separate deployments with separate routers and pools — make sure you target v2 (`0xa062aE8A...`) and not the deprecated v1 router; UI and SDK examples online still mix them up.
- ⚑Stable vs volatile pools share token pairs but use different curves; using the wrong `stable` flag silently routes through the wrong pool.
- ⚑Vote epochs are weekly (Thursday 00:00 UTC); votes only apply to the current epoch's emissions and bribes/rebases must be claimed before re-voting.
- ⚑Killed gauges (`Voter.killGauge`) stop receiving emissions but the pool keeps trading — always check `Voter.isAlive(gauge)` before assuming LP rewards.
- ⚑Superchain veVELO uses xVELO and message passing across OP Stack chains — voting power and rewards are aggregated cross-chain, with finality delays on settlement.
- ⚑Concentrated-liquidity (Slipstream) positions earn zero fees out of range and accumulate IL on volatile pairs; emissions alone often don't cover IL without active management.