Author

Topic: [ETH] General Purpose Dividend Profit Splitter contract || help wanted (Read 269 times)

newbie
Activity: 42
Merit: 0
Help wanted!
Any ideas how I can test this out properly?
For example: how to make the perfect checklist.

Alpha 0.1.0 general purpose profit splitter

Insert anything above 1 finney to be a contributor.
You will get shares in comparison to the total amount of contributions
To insert profit, send 1 finney to this contract first!
Then you have to send the profit directly after - in 1 transaction - with the same address!

No copyright, no fees, no owner (only an owner in beta)
Copy this code all you want (not my responsibility)

If you're inexperienced in coding, but willing to learn. I'll try to describe everything the best i can!
I'm an inexperienced coder myself.
You can tell, because i have no idea how version numbers work.

see code here:
0xc90233644d2eeb37a7ec641072c85ad272ef2feb

JSON interface or copy "Contract ABI" in the etherscan site.
Code:
[ { "constant": false, "inputs": [], "name": "giveContributionsBackProfitBugged", "outputs": [], "type": "function", "displayName": "give Contributions Back Profit Bugged" }, { "constant": false, "inputs": [], "name": "giveAllBack", "outputs": [], "type": "function", "displayName": "give All Back" }, { "constant": true, "inputs": [], "name": "totalContributorsProfit", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "total Contributors Profit" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint" } ], "name": "contributors", "outputs": [ { "name": "addr", "type": "address" }, { "name": "index", "type": "uint256" }, { "name": "contribution", "type": "uint256" }, { "name": "profit", "type": "uint256" }, { "name": "total", "type": "uint256" }, { "name": "lastContribution", "type": "uint256" }, { "name": "lastProfit", "type": "uint256" }, { "name": "lastProfitShare", "type": "uint256" }, { "name": "lastPayout", "type": "uint256" }, { "name": "error", "type": "string" } ], "type": "function", "displayName": "contributors" }, { "constant": false, "inputs": [], "name": "Fokitol", "outputs": [], "type": "function", "displayName": " Fokitol" }, { "constant": true, "inputs": [], "name": "totalContributorsContribution", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "total Contributors Contribution" }, { "constant": false, "inputs": [], "name": "cashAllOut", "outputs": [], "type": "function", "displayName": "cash All Out" }, { "constant": true, "inputs": [], "name": "contributorsIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "contributors Index" }, { "constant": true, "inputs": [], "name": "beta", "outputs": [ { "name": "", "type": "address", "value": "0xab914e7b04f1b6ed397dbce175eec827563c91bd", "displayName": "" } ], "type": "function", "displayName": "beta" }, { "constant": true, "inputs": [], "name": "nextInputProfit", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "" } ], "type": "function", "displayName": "next Input Profit" }, { "constant": false, "inputs": [], "name": "cashOutProfit", "outputs": [], "type": "function", "displayName": "cash Out Profit" }, { "constant": false, "inputs": [], "name": "insertProfitHere", "outputs": [], "type": "function", "displayName": "insert Profit Here" }, { "inputs": [], "type": "constructor" } ]
Jump to: