Since setGoalFailed is public (because you want it to be callable by the person trying to achieve the goal, and the contract owner is the supervisor) and does no checks, seems like anyone can mark a goal as failed and the money held in the smart contract will go to the contract owner? Shouldn't that check that msg.sender is either goals[_hash].owner or owner ?
You are right, thank you for spotting this! I will have to make a new contract, this one is flawed. If someone decides to call this function and I get the funds, I will give a manual refund. It will have to do until v2 release of the contract. Right now at least it's not holding any major funds.
Show HN: Go Freaking Do It – Smart contract for reaching your goals
51–60 of 112 posts
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#52Earlier quoted context omitted.
It is kind of awkward that a business that exists to help you get things done is paid whenever you fail.
Doctors and pharmaceutical companies are supposed to help you be healthy, but make more if you're ill long-term. Banks, credit card companies, and brokerages all make more money if you make poor financial decisions (fees, interest, and active trading, respectively). Auto mechanics and car companies make money if your car doesn't work or doesn't last past the warranty period. Even piano teachers only make money if you…
Which results in unnecessary procedures, and unnecessary prescriptions.
>Banks, credit card companies, and brokerages all make more money if you make poor financial decisions
Which caused the housing crisis and great recession.
>Auto mechanics and car companies make money if your car doesn't work or doesn't last past the warranty period.
Which results in some of the most untrustworthy salespeople in one of the most untrustworthy industries.
All of those industries are regulated by the government, precisely because the incentives are wrong and it causes people to do more harm than good if left unregulated.
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#53I don't really understand the trend of solving all problems with "smart contracts". This just seems to limit the potential market to people who care about smart contracts, and complicate an otherwise simple arrangement, without providing any benefits. You still have to find a supervisor your trust, why not just give money to a friend instead?
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#54Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#55Seems like an exact copy of gofuckingdoit.com
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#56>> and will keep the funds otherwise. If I'm possibly going to give my money away, why would I want to do this to some random contract, instead maybe a Charity or somewhere other than directly to the contract?
It is kind of awkward that a business that exists to help you get things done is paid whenever you fail.
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#57They didn't implement the most difficult part of the idea: the supervisor. Seems like a half-baked solution. Interesting, but incomplete.
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#58Earlier quoted context omitted.
It is kind of awkward that a business that exists to help you get things done is paid whenever you fail.
Doctors and pharmaceutical companies are supposed to help you be healthy, but make more if you're ill long-term. Banks, credit card companies, and brokerages all make more money if you make poor financial decisions (fees, interest, and active trading, respectively). Auto mechanics and car companies make money if your car doesn't work or doesn't last past the warranty period. Even piano teachers only make money if you…
Blockchains and smart contracts purport to lift of out of these conditions, but, as you point out, this one seems to suffer from the same flaws.
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#59Feel free to get in touch with me if you need a hand fixing any of this!
Re: Show HN: Go Freaking Do It – Smart contract for reaching your goals
#60Earlier quoted context omitted.
Doctors and pharmaceutical companies are supposed to help you be healthy, but make more if you're ill long-term. Banks, credit card companies, and brokerages all make more money if you make poor financial decisions (fees, interest, and active trading, respectively). Auto mechanics and car companies make money if your car doesn't work or doesn't last past the warranty period. Even piano teachers only make money if you…
>Doctors and pharmaceutical companies are supposed to help you be healthy, but make more if you're ill long-term. Which results in unnecessary procedures, and unnecessary prescriptions. >Banks, credit card companies, and brokerages all make more money if you make poor financial decisions Which caused the housing crisis and great recession. >Auto mechanics and car companies make money if your car doesn't work or doesn…