ggrieco-tob / DevContest

Generic contract that can plug into existing ERC20 tokens to run crowdsourced development contests for your platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development Challenge contract

Contract meant to plug into any existing ERC20 token that wants to incentivize crowdsourced development for their platform. Participants register their submission and the contract owner approves it. Token holders stake their token into the contract and vote for their favorite submission with their stake.

Rules

  • Must call approve() on token contract before staking or adding bounty
  • Contract owner sets the bounty and timeframe for challenge
  • No split votes (entire staked amount goes to choice)
  • Must remove vote before removing stake
  • If you stake more tokens after voting, you must remove your vote before that new staked amount can count towards a vote
  • One submission per address

Questions

  • What if there's a 2+ tie with votes?
  • Should there be a cancel/revert for entire contest?

Interesting additions

  • Add timeframe for submissions then allow for voting
  • Reward people who voted for winning submission with 10% of bounty
  • Tournament style with highest votes going to next round

Instructions

In order to run this project, follow the guide in the instructions folder. https://github.com/mokn/DevContest/blob/master/instructions/DevContest%20Startup%20Guide.pdf

About

Generic contract that can plug into existing ERC20 tokens to run crowdsourced development contests for your platform


Languages

Language:JavaScript 66.3%Language:HTML 22.8%Language:CSS 10.9%