Giter Site home page Giter Site logo

bloceducare / 500ngdev4ethtokenreward Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 15.0 20 KB

As a means of wrapping up on our summary, we would create a 500NigeriaDevs4Eth (500ND4E) token, this token will serve as a reward token on this platform, this token will be used to reward diligence, consistency and commitment to learning. This token would allow students access swaggs within the platform, students can unlock platform goodies based on how many tokens they have. This token contract will have the following rules : Only whitelisted members of this platform can hold this token Members can only be whitelisted by the contract owner or any of the admins (mentor) on the platform Not more than 2 tokens can be rewarded to any member at any time t Mentors cannot be rewarded any tokens Only admins or contract owner can reward a member Only members with proven track records can be rewarded (using 5 star rating, 3 and above) Anybody can rate a member (Note : Only members can be rated), rating weight is calculated as follows : Admins => 3pt Member => 1pt 5 star member => 2pt 15pt equals 1star

JavaScript 100.00%

500ngdev4ethtokenreward's Introduction

500ngdev4ethTokenReward

As a means of wrapping up on our summary, we would create a 500NigeriaDevs4Eth (500ND4E) token, this token will serve as a reward token on this platform, this token will be used to reward diligence, consistency and commitment to learning. This token would allow students access swaggs within the platform, students can unlock platform goodies based on how many tokens they have. This token contract will have the following rules :

  • Only whitelisted members of this platform can hold this token Members can only be whitelisted by the contract owner or any of the admins (mentor) on the platform Not more than 2 tokens can be rewarded to any member at any time t Mentors cannot be rewarded any tokens
  • Only admins or contract owner can reward a member Only members with proven track records can be rewarded (using 5 star rating, 3 and above)
  • Anybody can rate a member (Note : Only members can be rated), rating weight is calculated as follows : Admins => 3pt Member => 1pt 5 star member => 2pt 15pt equals 1star. As an assingment,all 500ngdev4eth students are to improve on this contract here on github and the deadline for submission or pushing to the test branch is 2000 CAT on Sunday,29th of December,2019.

500ngdev4ethtokenreward's People

Contributors

bobeu avatar jaylukmann avatar sam-devs avatar timidan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

500ngdev4ethtokenreward's Issues

Function bugs

I believe the reward mapping ,rateMember and rewardMember functions are not communicating.I tested the code on remix and found out that after rating a whitelisted member 5 times using an admin address which should give 10 points which is equivalent to 1 star and then the rewardmember function should reward the member but this is not the case because balances remain at 0 even after a member is rewarded.May be we need to integrate a proper token code into the rewardToken contract with its total supply,symbol and name which will then be used as a reward .

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.