Skip to content

Instantly share code, notes, and snippets.

@Vishwas1
Created April 20, 2018 11:00
Show Gist options
  • Save Vishwas1/3ebecd990a266ed1b6b611eef5382ca0 to your computer and use it in GitHub Desktop.
Save Vishwas1/3ebecd990a266ed1b6b611eef5382ca0 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.2;
contract AssetTracker{
address [] public sharers;
address public creator;
constructor() public{
creator = msg.sender;
}
function setSharers() public{
require(msg.sender != creator);
sharers.push(msg.sender);
}
function splitCash() public payable{
require(msg.value >0);
//split cash between creator and sharers in the ratio of 3:7
//creator get 30% and rest 70% will be devided among sharers..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment