ConsenSys/etherMAX

Name: etherMAX

Owner: ConsenSys

Description: On-blockchain contest for solving knapsack problems

Created: 2015-08-17 15:28:09.0

Updated: 2017-11-12 16:55:08.0

Pushed: 2015-08-17 15:40:38.0

Homepage: null

Size: 244

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

etherMAX

etherMAX is a contest built on Ethereum to incentivize solving an optimization problem. The app was built for a ConenSys Dapp-athon

On etherMAX, anyone can create their own token sale by describing 1) the max number of tokens available, 2) a minimum price per token, 3) length of sale 4) bond required for each matcher, 5) amount of time allotted to find optimal matches, and 6) a % reward to the best matcher

Contests are created with this method: newContest(uint32 entryPeriod, uint minPrice, uint maxItems, uint32 solvePeriod, uint solverBond, uint32 reward)

This creates a 4 phase contest:

function enter(uint contestId, uint itemCount, uint itemPrice)

function proposeSolve(uint contestId, uint maxEth)

function claimSolve(uint[] winners, uint contestId, uint solutionId, bool last)

function claimItems(uint contestId, uint winnerId)

You can run a simple interface for creating contests & entries by running cd frontend && npm start

A very naiive knapsack solver can be run with cd solver && npm install && node server <contractAddress> <contestId>


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.