Giter Site home page Giter Site logo

pie-dao / dough-staking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indexed-finance/dividends

3.0 3.0 7.0 875 KB

Solidity contracts for distribution of governance mining rewards

Shell 0.08% JavaScript 2.01% Solidity 41.62% TypeScript 56.29%

dough-staking's People

Contributors

alexintosh avatar d1ll0n avatar dantop114 avatar mickdegraaf avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dough-staking's Issues

Events

  • Eject
  • boostToMax
  • distribute
  • collectWithParticipation
  • collectForWithParticipation

Assume block are 12s

The block time for the upcoming Ethereum 2.0 (Eth2) is set to 12 seconds. This includes the beacon chain and shard chains.

Rename

Everything named as dividend should become reward.

Improve Events Data

in order to properly sync with thegraph, we are in need to have a complete set of infos coming from events.
In details, we should modify the events BoostedToMax / Deposited / Withdrawn / Ejected by adding the lockID value to the emitter.

Pre audit checklist

  • Remove console.logs
  • Events (eject, redistribute, etc)
  • Remove unused testing contracts
  • Run coverage
  • Deployment scripts
  • Possible gas savings

Full Integration test

  • Deploy the Timelock
  • Deploy the ERC20 Non-Transferable Token
  • Let the time pass
  • Set Merkle Proof
  • Verify the outcomes

Cases to cover:

  • Multiple accounts at the same time
  • One account at the same time
  • User who did not partecipate is not able to claim
  • User who was ejected cannot claim rewards
  • User who did partecipate is able to claim
  • User that have have his lock expired can be ejected

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.