Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
CoolKidsPaymentSplitter
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract CoolKidsPaymentSplitter is Ownable { event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); address[] public payees; uint256[] public shares; uint256 public totalShares; constructor(address[] memory initialPayees, uint256[] memory initialShares) { require(initialPayees.length == initialShares.length, "Payees and shares length mismatch"); require(initialPayees.length > 0, "No payees"); for (uint256 i = 0; i < initialPayees.length; i++) { payees.push(initialPayees[i]); shares.push(initialShares[i]); totalShares = totalShares + initialShares[i]; } } function resetShareholding(address[] memory newPayees, uint256[] memory newShares) public onlyOwner { require(newPayees.length == newShares.length, "Payees and shares length mismatch"); require(newPayees.length > 0, "No payees"); delete payees; delete shares; totalShares = 0; for (uint256 i = 0; i < newPayees.length; i++) { payees.push(newPayees[i]); shares.push(newShares[i]); totalShares = totalShares + newShares[i]; } } function distribute() external payable onlyOwner { uint256 amountToDistribute = address(this).balance; for (uint256 i = 0; i < payees.length; i++) { uint256 payment = amountToDistribute * shares[i] / totalShares; Address.sendValue(payable(payees[i]), payment); emit PaymentReleased(payees[i], payment); } } receive () external payable virtual { emit PaymentReceived(msg.sender, msg.value); } function withdraw(uint256 amount) public onlyOwner { Address.sendValue(payable(msg.sender), amount); emit PaymentReleased(msg.sender, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"initialPayees","type":"address[]"},{"internalType":"uint256[]","name":"initialShares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"newPayees","type":"address[]"},{"internalType":"uint256[]","name":"newShares","type":"uint256[]"}],"name":"resetShareholding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001ce738038062001ce78339818101604052810190620000379190620005d5565b620000576200004b6200020a60201b60201c565b6200021260201b60201c565b80518251146200009e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200009590620006e1565b60405180910390fd5b6000825111620000e5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000dc9062000753565b60405180910390fd5b60005b8251811015620002015760018382815181106200010a576200010962000775565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028282815181106200018a576200018962000775565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055818181518110620001ce57620001cd62000775565b5b6020026020010151600354620001e59190620007d3565b6003819055508080620001f89062000830565b915050620000e8565b5050506200087d565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200033a82620002ef565b810181811067ffffffffffffffff821117156200035c576200035b62000300565b5b80604052505050565b600062000371620002d6565b90506200037f82826200032f565b919050565b600067ffffffffffffffff821115620003a257620003a162000300565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003e582620003b8565b9050919050565b620003f781620003d8565b81146200040357600080fd5b50565b6000815190506200041781620003ec565b92915050565b6000620004346200042e8462000384565b62000365565b905080838252602082019050602084028301858111156200045a5762000459620003b3565b5b835b8181101562000487578062000472888262000406565b8452602084019350506020810190506200045c565b5050509392505050565b600082601f830112620004a957620004a8620002ea565b5b8151620004bb8482602086016200041d565b91505092915050565b600067ffffffffffffffff821115620004e257620004e162000300565b5b602082029050602081019050919050565b6000819050919050565b6200050881620004f3565b81146200051457600080fd5b50565b6000815190506200052881620004fd565b92915050565b6000620005456200053f84620004c4565b62000365565b905080838252602082019050602084028301858111156200056b576200056a620003b3565b5b835b8181101562000598578062000583888262000517565b8452602084019350506020810190506200056d565b5050509392505050565b600082601f830112620005ba57620005b9620002ea565b5b8151620005cc8482602086016200052e565b91505092915050565b60008060408385031215620005ef57620005ee620002e0565b5b600083015167ffffffffffffffff81111562000610576200060f620002e5565b5b6200061e8582860162000491565b925050602083015167ffffffffffffffff811115620006425762000641620002e5565b5b6200065085828601620005a2565b9150509250929050565b600082825260208201905092915050565b7f50617965657320616e6420736861726573206c656e677468206d69736d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000620006c96021836200065a565b9150620006d6826200066b565b604082019050919050565b60006020820190508181036000830152620006fc81620006ba565b9050919050565b7f4e6f207061796565730000000000000000000000000000000000000000000000600082015250565b60006200073b6009836200065a565b9150620007488262000703565b602082019050919050565b600060208201905081810360008301526200076e816200072c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620007e082620004f3565b9150620007ed83620004f3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620008255762000824620007a4565b5b828201905092915050565b60006200083d82620004f3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620008725762000871620007a4565b5b600182019050919050565b61145a806200088d6000396000f3fe60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461019d5780638da5cb5b146101b4578063e4fc6b6d146101df578063e9656bf2146101e9578063f2fde38b14610212576100ca565b80632e1a7d4d146100cf5780633a98ef39146100f857806357a858fc1461012357806363037b0c14610160576100ca565b366100ca577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516100c0929190610b64565b60405180910390a1005b600080fd5b3480156100db57600080fd5b506100f660048036038101906100f19190610bcd565b61023b565b005b34801561010457600080fd5b5061010d6102fd565b60405161011a9190610bfa565b60405180910390f35b34801561012f57600080fd5b5061014a60048036038101906101459190610bcd565b610303565b6040516101579190610bfa565b60405180910390f35b34801561016c57600080fd5b5061018760048036038101906101829190610bcd565b610327565b6040516101949190610c15565b60405180910390f35b3480156101a957600080fd5b506101b2610366565b005b3480156101c057600080fd5b506101c96103ee565b6040516101d69190610c15565b60405180910390f35b6101e7610417565b005b3480156101f557600080fd5b50610210600480360381019061020b9190610e78565b6105ba565b005b34801561021e57600080fd5b5061023960048036038101906102349190610ef0565b6107f4565b005b6102436108eb565b73ffffffffffffffffffffffffffffffffffffffff166102616103ee565b73ffffffffffffffffffffffffffffffffffffffff16146102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610f7a565b60405180910390fd5b6102c133826108f3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05633826040516102f2929190610b64565b60405180910390a150565b60035481565b6002818154811061031357600080fd5b906000526020600020016000915090505481565b6001818154811061033757600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61036e6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661038c6103ee565b73ffffffffffffffffffffffffffffffffffffffff16146103e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d990610f7a565b60405180910390fd5b6103ec60006109e7565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61041f6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661043d6103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610493576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048a90610f7a565b60405180910390fd5b600047905060005b6001805490508110156105b6576000600354600283815481106104c1576104c0610f9a565b5b9060005260206000200154846104d79190610ff8565b6104e19190611081565b905061052b600183815481106104fa576104f9610f9a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826108f3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056600183815481106105605761055f610f9a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260405161059a929190610b64565b60405180910390a15080806105ae906110b2565b91505061049b565b5050565b6105c26108eb565b73ffffffffffffffffffffffffffffffffffffffff166105e06103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062d90610f7a565b60405180910390fd5b805182511461067a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106719061116c565b60405180910390fd5b60008251116106be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b5906111d8565b60405180910390fd5b600160006106cc9190610aab565b600260006106da9190610acc565b600060038190555060005b82518110156107ef57600183828151811061070357610702610f9a565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028282815181106107805761077f610f9a565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558181815181106107c1576107c0610f9a565b5b60200260200101516003546107d691906111f8565b60038190555080806107e7906110b2565b9150506106e5565b505050565b6107fc6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661081a6103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610870576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086790610f7a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d6906112c0565b60405180910390fd5b6108e8816109e7565b50565b600033905090565b80471015610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d9061132c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161095c9061137d565b60006040518083038185875af1925050503d8060008114610999576040519150601f19603f3d011682016040523d82523d6000602084013e61099e565b606091505b50509050806109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d990611404565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5080546000825590600052602060002090810190610ac99190610aed565b50565b5080546000825590600052602060002090810190610aea9190610aed565b50565b5b80821115610b06576000816000905550600101610aee565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610b3582610b0a565b9050919050565b610b4581610b2a565b82525050565b6000819050919050565b610b5e81610b4b565b82525050565b6000604082019050610b796000830185610b3c565b610b866020830184610b55565b9392505050565b6000604051905090565b600080fd5b600080fd5b610baa81610b4b565b8114610bb557600080fd5b50565b600081359050610bc781610ba1565b92915050565b600060208284031215610be357610be2610b97565b5b6000610bf184828501610bb8565b91505092915050565b6000602082019050610c0f6000830184610b55565b92915050565b6000602082019050610c2a6000830184610b3c565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610c7e82610c35565b810181811067ffffffffffffffff82111715610c9d57610c9c610c46565b5b80604052505050565b6000610cb0610b8d565b9050610cbc8282610c75565b919050565b600067ffffffffffffffff821115610cdc57610cdb610c46565b5b602082029050602081019050919050565b600080fd5b610cfb81610b2a565b8114610d0657600080fd5b50565b600081359050610d1881610cf2565b92915050565b6000610d31610d2c84610cc1565b610ca6565b90508083825260208201905060208402830185811115610d5457610d53610ced565b5b835b81811015610d7d5780610d698882610d09565b845260208401935050602081019050610d56565b5050509392505050565b600082601f830112610d9c57610d9b610c30565b5b8135610dac848260208601610d1e565b91505092915050565b600067ffffffffffffffff821115610dd057610dcf610c46565b5b602082029050602081019050919050565b6000610df4610def84610db5565b610ca6565b90508083825260208201905060208402830185811115610e1757610e16610ced565b5b835b81811015610e405780610e2c8882610bb8565b845260208401935050602081019050610e19565b5050509392505050565b600082601f830112610e5f57610e5e610c30565b5b8135610e6f848260208601610de1565b91505092915050565b60008060408385031215610e8f57610e8e610b97565b5b600083013567ffffffffffffffff811115610ead57610eac610b9c565b5b610eb985828601610d87565b925050602083013567ffffffffffffffff811115610eda57610ed9610b9c565b5b610ee685828601610e4a565b9150509250929050565b600060208284031215610f0657610f05610b97565b5b6000610f1484828501610d09565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610f64602083610f1d565b9150610f6f82610f2e565b602082019050919050565b60006020820190508181036000830152610f9381610f57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061100382610b4b565b915061100e83610b4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561104757611046610fc9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061108c82610b4b565b915061109783610b4b565b9250826110a7576110a6611052565b5b828204905092915050565b60006110bd82610b4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110ef576110ee610fc9565b5b600182019050919050565b7f50617965657320616e6420736861726573206c656e677468206d69736d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000611156602183610f1d565b9150611161826110fa565b604082019050919050565b6000602082019050818103600083015261118581611149565b9050919050565b7f4e6f207061796565730000000000000000000000000000000000000000000000600082015250565b60006111c2600983610f1d565b91506111cd8261118c565b602082019050919050565b600060208201905081810360008301526111f1816111b5565b9050919050565b600061120382610b4b565b915061120e83610b4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561124357611242610fc9565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006112aa602683610f1d565b91506112b58261124e565b604082019050919050565b600060208201905081810360008301526112d98161129d565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000611316601d83610f1d565b9150611321826112e0565b602082019050919050565b6000602082019050818103600083015261134581611309565b9050919050565b600081905092915050565b50565b600061136760008361134c565b915061137282611357565b600082019050919050565b60006113888261135a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006113ee603a83610f1d565b91506113f982611392565b604082019050919050565b6000602082019050818103600083015261141d816113e1565b905091905056fea2646970667358221220e082b1b24858e51ff5250780c26ef9a9139f724f114d17eeadd76cd0e6f8cd5164736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000040000000000000000000000004fe33d85730b92640ac20916e72e3b4fd3c4ce26000000000000000000000000af705c1790719dbe05663989402ff239f30aef89000000000000000000000000dc8eb8d2d1babd956136b57b0b9f49b433c019e300000000000000000000000054d2df18a8445afa139ae7cc9423b7eeeb29d08d00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000005dc
Deployed Bytecode
0x60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461019d5780638da5cb5b146101b4578063e4fc6b6d146101df578063e9656bf2146101e9578063f2fde38b14610212576100ca565b80632e1a7d4d146100cf5780633a98ef39146100f857806357a858fc1461012357806363037b0c14610160576100ca565b366100ca577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516100c0929190610b64565b60405180910390a1005b600080fd5b3480156100db57600080fd5b506100f660048036038101906100f19190610bcd565b61023b565b005b34801561010457600080fd5b5061010d6102fd565b60405161011a9190610bfa565b60405180910390f35b34801561012f57600080fd5b5061014a60048036038101906101459190610bcd565b610303565b6040516101579190610bfa565b60405180910390f35b34801561016c57600080fd5b5061018760048036038101906101829190610bcd565b610327565b6040516101949190610c15565b60405180910390f35b3480156101a957600080fd5b506101b2610366565b005b3480156101c057600080fd5b506101c96103ee565b6040516101d69190610c15565b60405180910390f35b6101e7610417565b005b3480156101f557600080fd5b50610210600480360381019061020b9190610e78565b6105ba565b005b34801561021e57600080fd5b5061023960048036038101906102349190610ef0565b6107f4565b005b6102436108eb565b73ffffffffffffffffffffffffffffffffffffffff166102616103ee565b73ffffffffffffffffffffffffffffffffffffffff16146102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610f7a565b60405180910390fd5b6102c133826108f3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05633826040516102f2929190610b64565b60405180910390a150565b60035481565b6002818154811061031357600080fd5b906000526020600020016000915090505481565b6001818154811061033757600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61036e6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661038c6103ee565b73ffffffffffffffffffffffffffffffffffffffff16146103e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d990610f7a565b60405180910390fd5b6103ec60006109e7565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61041f6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661043d6103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610493576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048a90610f7a565b60405180910390fd5b600047905060005b6001805490508110156105b6576000600354600283815481106104c1576104c0610f9a565b5b9060005260206000200154846104d79190610ff8565b6104e19190611081565b905061052b600183815481106104fa576104f9610f9a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826108f3565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056600183815481106105605761055f610f9a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260405161059a929190610b64565b60405180910390a15080806105ae906110b2565b91505061049b565b5050565b6105c26108eb565b73ffffffffffffffffffffffffffffffffffffffff166105e06103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062d90610f7a565b60405180910390fd5b805182511461067a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106719061116c565b60405180910390fd5b60008251116106be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b5906111d8565b60405180910390fd5b600160006106cc9190610aab565b600260006106da9190610acc565b600060038190555060005b82518110156107ef57600183828151811061070357610702610f9a565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060028282815181106107805761077f610f9a565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558181815181106107c1576107c0610f9a565b5b60200260200101516003546107d691906111f8565b60038190555080806107e7906110b2565b9150506106e5565b505050565b6107fc6108eb565b73ffffffffffffffffffffffffffffffffffffffff1661081a6103ee565b73ffffffffffffffffffffffffffffffffffffffff1614610870576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086790610f7a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d6906112c0565b60405180910390fd5b6108e8816109e7565b50565b600033905090565b80471015610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d9061132c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161095c9061137d565b60006040518083038185875af1925050503d8060008114610999576040519150601f19603f3d011682016040523d82523d6000602084013e61099e565b606091505b50509050806109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d990611404565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5080546000825590600052602060002090810190610ac99190610aed565b50565b5080546000825590600052602060002090810190610aea9190610aed565b50565b5b80821115610b06576000816000905550600101610aee565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610b3582610b0a565b9050919050565b610b4581610b2a565b82525050565b6000819050919050565b610b5e81610b4b565b82525050565b6000604082019050610b796000830185610b3c565b610b866020830184610b55565b9392505050565b6000604051905090565b600080fd5b600080fd5b610baa81610b4b565b8114610bb557600080fd5b50565b600081359050610bc781610ba1565b92915050565b600060208284031215610be357610be2610b97565b5b6000610bf184828501610bb8565b91505092915050565b6000602082019050610c0f6000830184610b55565b92915050565b6000602082019050610c2a6000830184610b3c565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610c7e82610c35565b810181811067ffffffffffffffff82111715610c9d57610c9c610c46565b5b80604052505050565b6000610cb0610b8d565b9050610cbc8282610c75565b919050565b600067ffffffffffffffff821115610cdc57610cdb610c46565b5b602082029050602081019050919050565b600080fd5b610cfb81610b2a565b8114610d0657600080fd5b50565b600081359050610d1881610cf2565b92915050565b6000610d31610d2c84610cc1565b610ca6565b90508083825260208201905060208402830185811115610d5457610d53610ced565b5b835b81811015610d7d5780610d698882610d09565b845260208401935050602081019050610d56565b5050509392505050565b600082601f830112610d9c57610d9b610c30565b5b8135610dac848260208601610d1e565b91505092915050565b600067ffffffffffffffff821115610dd057610dcf610c46565b5b602082029050602081019050919050565b6000610df4610def84610db5565b610ca6565b90508083825260208201905060208402830185811115610e1757610e16610ced565b5b835b81811015610e405780610e2c8882610bb8565b845260208401935050602081019050610e19565b5050509392505050565b600082601f830112610e5f57610e5e610c30565b5b8135610e6f848260208601610de1565b91505092915050565b60008060408385031215610e8f57610e8e610b97565b5b600083013567ffffffffffffffff811115610ead57610eac610b9c565b5b610eb985828601610d87565b925050602083013567ffffffffffffffff811115610eda57610ed9610b9c565b5b610ee685828601610e4a565b9150509250929050565b600060208284031215610f0657610f05610b97565b5b6000610f1484828501610d09565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610f64602083610f1d565b9150610f6f82610f2e565b602082019050919050565b60006020820190508181036000830152610f9381610f57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061100382610b4b565b915061100e83610b4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561104757611046610fc9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061108c82610b4b565b915061109783610b4b565b9250826110a7576110a6611052565b5b828204905092915050565b60006110bd82610b4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110ef576110ee610fc9565b5b600182019050919050565b7f50617965657320616e6420736861726573206c656e677468206d69736d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000611156602183610f1d565b9150611161826110fa565b604082019050919050565b6000602082019050818103600083015261118581611149565b9050919050565b7f4e6f207061796565730000000000000000000000000000000000000000000000600082015250565b60006111c2600983610f1d565b91506111cd8261118c565b602082019050919050565b600060208201905081810360008301526111f1816111b5565b9050919050565b600061120382610b4b565b915061120e83610b4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561124357611242610fc9565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006112aa602683610f1d565b91506112b58261124e565b604082019050919050565b600060208201905081810360008301526112d98161129d565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000611316601d83610f1d565b9150611321826112e0565b602082019050919050565b6000602082019050818103600083015261134581611309565b9050919050565b600081905092915050565b50565b600061136760008361134c565b915061137282611357565b600082019050919050565b60006113888261135a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006113ee603a83610f1d565b91506113f982611392565b604082019050919050565b6000602082019050818103600083015261141d816113e1565b905091905056fea2646970667358221220e082b1b24858e51ff5250780c26ef9a9139f724f114d17eeadd76cd0e6f8cd5164736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000040000000000000000000000004fe33d85730b92640ac20916e72e3b4fd3c4ce26000000000000000000000000af705c1790719dbe05663989402ff239f30aef89000000000000000000000000dc8eb8d2d1babd956136b57b0b9f49b433c019e300000000000000000000000054d2df18a8445afa139ae7cc9423b7eeeb29d08d00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000005dc
-----Decoded View---------------
Arg [0] : initialPayees (address[]): 0x4Fe33D85730b92640aC20916E72e3b4fd3c4CE26,0xaf705c1790719Dbe05663989402ff239f30AeF89,0xDc8Eb8d2D1babD956136b57B0B9F49b433c019e3,0x54d2df18A8445aFA139AE7Cc9423b7eeeB29d08d
Arg [1] : initialShares (uint256[]): 4000,3000,1500,1500
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 0000000000000000000000004fe33d85730b92640ac20916e72e3b4fd3c4ce26
Arg [4] : 000000000000000000000000af705c1790719dbe05663989402ff239f30aef89
Arg [5] : 000000000000000000000000dc8eb8d2d1babd956136b57b0b9f49b433c019e3
Arg [6] : 00000000000000000000000054d2df18a8445afa139ae7cc9423b7eeeb29d08d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000fa0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [10] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [11] : 00000000000000000000000000000000000000000000000000000000000005dc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.