Winner Takes It All

FINANCIAL

Contract purpose

Crowdfunding system for reckless startups!

Contract parameters

minimumEntryFee : the minimum entry fee for those who want to propose a project

deadlineProjects : the time interval for submitting new entries

deadlineCampaign : the time interval before the winner is announced

Exposed methods and variables

winningFunds : the total amount the winner proposal will receive

winningAddress : the address of the winner

projectAddresses : list of all project addresses

numberOfProject : the total number of submitted proposals

submitProject : called by anyone who wishes to submit a project proposal before the deadline is over

parameter nametypedetails
namestringname of the project
urlstringurl to the project website

supportProject : allows anyone to support the project they like most before the campaign deadline is over

parameter nametypedetails
addrethereum addressthe project address

getProjectInfo : returns the details of a particular project

parameter nametypedetails
addrethereum addressthe project address

finish : if called, verifies if the campaign is over and if this is true, sends the funds to the winning project and destructs itself

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract