Splitter Architecture
constructor(address[] memory _payees, uint256[] memory _shares)
PaymentSplitter(_payees, _shares)
{}
Index | Name | Description |
---|---|---|
0 | _payees | List of payees |
1 | _shares | List of shares for each payee |
Field | Meaning |
---|---|
🛠 | Function can modify state |
💵 | Function is payable |
Public | public functions can be called internally from within the contract or externally via messages |
External | External functions are part of the contract interface, which means they can be called from other contracts and via transactions. An external function f cannot be called internally (i.e. f() does not work, but this.f() works). |
Function Name | Visibility | Mutability | Description |
---|---|---|---|
totalPayees | Public | - | Returns the total number of payees |
isPayee | Public | - | Returns true if a supplied address is a payee |
addPayee | Public | 🛠 | Adds a single address with a share to the payee list |
addPayees | Public | 🛠 | Adds a list of addresses, each with a share, to the payee list |
releaseAll | Public | 🛠 | Releases all ethers in the contract to the payees |
releaseAll | Public | 🛠 | Releases all ERC20 tokens in the contract to the payees |

Want to see an example of how the math works out for a Splitter contract? See Distributing Proceeds Example
Something not quite right, unclear or can't find what you are looking for? Please let us know at [email protected] and we will get back to you as soon as we can.
Last modified 11mo ago