Code Monkey home page Code Monkey logo

mining's People

Contributors

ltfschoen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

mining's Issues

Fix logic for Claim Status (Approve, Reject, Pending)

The current logic doesn't work in https://github.com/DataHighway-DHX/mining/blob/master/contracts/Lockdrop.sol#L153

If a user "locks" some tokens, and the owner of the Lockdrop approves say 60% of their claim,
then in the app it shows 60% Approved, 40% Pending, but there's no way to indicate that the vote on their claim is finalised, such that the pending amount becomes rejected. And the logic is wrong.

Instead of just having approvedTokenERC20Amount, we should have a boolean claimVoteFinalized flag or similar, that when set to true prevents further voting on that Lock or Signal (i.e. the approved and rejected values are finalised, and if there are any remaining pending values, then they'd become rejected too).
In addition, we need to have separate approvedTokenERC20Amount, pendingTokenERC20Amount, and rejectedTokenERC20Amount.
The sum of them should not exceed tokenERC20Amount, which is the amount of tokens Locked or Signaled

Incorporate post-MVP actions

Important note: This commit 845ff71 is incomplete.
There are some FIXMEs that need resolving:

The API aspect has been put on hold since for MVP it was agreed on 7th April 2020 that the Flutter app for the testnet would just show instructions and only use a front-end web3 library to read and show the state from the Ethereum smart contracts that record the lock and signals (i.e. show the MXC and IOTA-E balance. Excluded from MVP is having functionality to directly lock, signal, and claim from within the app.

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.