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.
function _addPayee(address account, uint256 shares_) internal
Add a new payee to the contract.
account- The address of the payee to add.
shares_- The number of shares owned by the payee.
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.