- DevZen tokens give power to add new ads;
- Reputation tokens are used to govern the DAO, to become a next radio show guest, to moderate the list.
- kX tokens for X ads slots
- F free floating tokens,
I pay X % wei fee to put money into the fund (to buy tokens)
??? - I pay Y % wei fee to convert tokens -> ETH (withdraw money out of the fund)
I can buy N tokens for K wei by sending Wei to the fund
I get M% dividends each month for 1 token
//////////////////////////////////////////////// | |
// Moneyflow 1 | |
Moneyflow mf; | |
uint idRoot = mf.addSplitter(0); | |
// serial - abs expense | |
uint absExp1 = mf.addAbsExpense(idRoot, 1ETH); | |
uint absExp2 = mf.addAbsExpense(absExp1, 2ETH); | |
uint absExp3 = mf.addAbsExpense(absExp2, 5ETH); |
// this is a Solidity pseudocode | |
string[] actionsByBoss = [ | |
"issueTokens", | |
"manageGroups", | |
"modifyMoneyflow", | |
"upgradeDaoContract", | |
"withdrawDonations", | |
"flushReserveFundTo", | |
"flushDividendsFundTo" | |
]; |
pragma solidity ^0.4.19; | |
contract One { | |
string public s = "two"; | |
function returnString() public constant returns(string) { | |
return "one"; | |
} | |
function stringToBytes32(string s) constant returns(bytes32){ |
I hereby claim:
To claim this, I am signing this object:
// Transaction makes payment of X units from A to B | |
func (t *ChaincodeExample) MakePayment(stub shim.ChaincodeStubInterface, param *example02.PaymentParams) error { | |
var err error | |
// Get the state from the ledger | |
src, err := t.GetState(stub, param.PartySrc) | |
if err != nil { | |
return err | |
} |
// Mixing safe math (that throws) with return true/false is not a good coding style | |
// This is your version: | |
function transfer(address _to, uint _value) returns (bool success) { | |
if ((msg.sender == owner) || (tradeable == true)) { | |
balances[msg.sender] = safeSub(balances[msg.sender], _value); | |
balances[_to] = safeAdd(balances[_to], _value); | |
// calling an event | |
Transfer(msg.sender, _to, _value); |