Skip to content

drummaster98/velodrome-v1

 
 

Repository files navigation

Velodrome

This repo contains the contracts for Velodrome Finance, an AMM on Optimism inspired by Solidly.

Testing

This repo uses both Foundry (for Solidity testing) and Hardhat (for deployment).

Foundry Setup

forge init
forge build
forge test

Hardhat Setup

npm i
npx hardhat compile

Deployment

This project's deployment process uses Hardhat tasks. The scripts are found in tasks/.

Deployment contains 3 steps:

  1. npx hardhat deploy:op which deploys the core contracts, along with RedemptionReceiver, to Optimism.

  2. npx hardhat deploy:ftm which deploys the RedemptionSender contract to Fantom. The RedemptionReceiver address from Step 1 should be recorded in deployed.ts prior.

Security

The Velodrome team engaged with Code 4rena for a security review. The results of that audit are available here. Our up-to-date security findings are located on our website here.

Contracts

Name Address
WETH 0x4200000000000000000000000000000000000006
Velo 0x3c8B650257cFb5f272f799F5e2b4e65093a11a05
MerkleClaim 0x00D59BC35174C3b250Dd92a363495d38C8777a49
RedemptionSender 0x9809fB94eED086F9529df00d6f125Bf25Ee84A93
RedemptionReceiver 0x846e822e9a00669dcC647079d7d625d2cd25A951
PairFactory 0x25CbdDb98b35ab1FF77413456B31EC81A6B6B746
BribeFactory 0xA84EA94Aa705F7d009CDDF2a60f65c0d446b748E
GaugeFactory 0xC5be2c918EB04B091962fDF095A217A55CFA42C5
Voter 0x09236cfF45047DBee6B921e00704bed6D6B8Cf7e
VeloGovernor 0x64DD805aa894dc001f8505e000c7535179D96C9E
VotingEscrow 0x9c7305eb78a432ced5C4D14Cac27E8Ed569A2e26
VeArtProxy 0x5F2f6721Ca0C5AC522BC875fA3F09bF693dcFa1D
RewardsDistributor 0x5d5Bea9f0Fc13d967511668a60a3369fD53F784F
Minter 0x3460Dc71A8863710D1C907B8d9D5DBC053a4102d

About

Velodrome Finance v1 Smart Contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 93.1%
  • TypeScript 4.9%
  • JavaScript 2.0%