This contract can be used when payments need to be received by a group of people and split proportionately to some number of shares they own.
event PayeeAdded(address account, uint256 shares)
event PaymentReceived(address from, uint256 amount)
event PaymentReleased(address to, uint256 amount)
function (address payees, uint256 shares) public payable
function () external payable
function payee(uint256 index) public view returns (address)
- the address of a payee.
function release(address account) public
Release one of the payee's proportional payment.
account- Whose payments will be released.
function released(address account) public view returns (uint256)
- the amount already released to an account.
function shares(address account) public view returns (uint256)
- the shares of an account.
function totalReleased() public view returns (uint256)
- the total amount already released.
function totalShares() public view returns (uint256)
- the total shares of the contract.