Giter VIP home page Giter VIP logo

2022-05-velodrome's Introduction

Velodrome contest details

Contest Scope

Native Token

  • Velo.sol (62 lines)
  • VotingEscrow.sol (868 lines, lib: Base64)

Pair

  • Pair.sol (416 lines, lib: Math)
  • PairFees.sol (23 lines)
  • factories/PairFactory.sol (82 lines)
  • Router.sol (370 lines, lib: Math)
  • VelodromeLibrary.sol (89 lines)

Emissions

  • RewardsDistributor.sol (260 lines, lib: Math)
  • Minter.sol (111 lines; lib: Math)

Voting

  • Gauge.sol (545 lines, lib: Math)
  • factories/GaugeFactory.sol (26 lines)
  • Bribe.sol (85 lines)
  • factories/BribeFactory.sol (9 lines)
  • Voter.sol (304 lines, lib: Math)

Governance

  • VeloGovernor.sol (50 lines, lib: L2Governor governance)

Redemption (WeVE -> VELO)

  • redeem/RedemptionSender.sol (44 lines, lib: LayerZero)
  • redeem/RedemptionReceiver.sol (99 lines, lib: LayerZero)

New Formula

The only new formula we introduce is for the emissions schedule:

$\frac{1}{2} * weekly * (\frac{veTotal}{veloTotal})^3$

where

$veTotal$ is the total locked supply of VELO and

$veloTotal$ is the total supply of VELO

ERC-20 Standard

VELO is the native token of Velodrome and does conform to the ERC-20 standard

Our Unique Approach

Gauges/Bribes/Voting

  • Staggered epoch for Gauges/Bribes to ensure rewards go to the right people
  • Added Compound-style weighted NFT governance for killing "bad" gauges. This governance uses block.timestamp instead of block.number because it's on an L2
  • Removed veNFT "boost" for LP staking
  • Gauges can be added for any address for emergency DAO
  • Removed negative voting

Emissions

  • Updated emissions schedule
  • Added core team emissions

Pair

  • Variable fees for stable/volatile pairs

Distribution

  • Added two "redemption" contracts for WeVE (veDAO token) -> VELO+USDC which uses LayerZero

Areas of Concern

As we're not changing any of the core swap logic, the bulk of our security concerns relate to the native token emissions, governance, and distribution:

  • Gauge.sol and Bribe.sol, which introduce new logic related to how external bribes and voting work
  • VotingEscrow.sol, which adds compatibility with OZ/Comp-style governance tools like Tally
  • RedemptionSender.sol and RedemptionReceiver.sol which both use LayerZero for cross-chain messaging

2022-05-velodrome's People

Contributors

itsmetechjay avatar pooltypes avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.