filecoin-saturn / contracts

contracts
7 stars 0 forks source link

feat: payout factory contract #1

Closed alexander-camuto closed 1 year ago

alexander-camuto commented 1 year ago
/**
* @dev Spins up a new payment splitter.
*/
function payout(address[] memory payees, uint256[] memory shares_)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
    returns (address instance) {...}
/**
* @dev Returns the total claimable amount over all previously generated payout contracts.
* @param account The address of the payee.
*/
function releasable(address account)
    external
    view
    returns (uint256 totalValue) {...}

/**
* @dev Releases all available funds in previously generated payout contracts.
* @param account The address of the payee.
*/
function releaseAll(address account) external {...}

/**
* @dev Releases all available funds in a single previously generated payout contract.
* @param account The address of the payee.
* @param index Index of the payout contract.
*/
function _releasePayout(address account, uint256 index) private {...}