Charity Pool

FINANCIAL

Contract purpose

Smart Contract for receiving charity donations for a particular charity cause.

Contract parameters

_causeAddr the address where the funds will go

description cause details description

moneyNeeded the amount of money needed for the cause

Exposed methods and variables

creator address of the cause creator

description cause details description

moneyNeeded the estimated amount of money needed for the cause

balance the sum of money that was donated so far

donateToCause payable function that can be called by any user who wishes to donate to the cause

updateMoneyNeeded enables the creator to change the amount of needed money

sendMoney called by the cause creator to send the donated money to the cause address and resets the balance for the cause

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract