ETH Price: $1,614.13 (-1.29%)
 

Overview

ETH Balance

0.07729120334864989 ETH

Eth Value

$124.76 (@ $1,614.13/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release All176069842023-07-02 14:42:59653 days ago1688308979IN
0x9FB3fd12...27b12e009
0 ETH0.0043252118.6704533
Release All171756042023-05-02 20:58:11713 days ago1683061091IN
0x9FB3fd12...27b12e009
0 ETH0.02343626101.16622811
Release All168291052023-03-14 22:17:59762 days ago1678832279IN
0x9FB3fd12...27b12e009
0 ETH0.0112431824.83797821

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer215902132025-01-09 23:30:1195 days ago1736465411
0x9FB3fd12...27b12e009
0.0000245 ETH
Transfer215597962025-01-05 17:33:35100 days ago1736098415
0x9FB3fd12...27b12e009
0.0001 ETH
Transfer215597672025-01-05 17:27:47100 days ago1736098067
0x9FB3fd12...27b12e009
0.00015 ETH
Transfer215597672025-01-05 17:27:47100 days ago1736098067
0x9FB3fd12...27b12e009
0.0000125 ETH
Transfer215240862024-12-31 17:57:35105 days ago1735667855
0x9FB3fd12...27b12e009
0.0000745 ETH
Transfer214703542024-12-24 5:50:35112 days ago1735019435
0x9FB3fd12...27b12e009
0.0000275 ETH
Transfer214622932024-12-23 2:45:35113 days ago1734921935
0x9FB3fd12...27b12e009
0.0000125 ETH
Transfer214126652024-12-16 4:22:59120 days ago1734322979
0x9FB3fd12...27b12e009
0.0000339 ETH
Transfer213199112024-12-03 5:32:59133 days ago1733203979
0x9FB3fd12...27b12e009
0.000121 ETH
Transfer208918502024-10-04 11:26:23193 days ago1728041183
0x9FB3fd12...27b12e009
0.000068 ETH
Transfer208193702024-09-24 8:50:35203 days ago1727167835
0x9FB3fd12...27b12e009
0.00014676 ETH
Transfer200953722024-06-15 6:20:47304 days ago1718432447
0x9FB3fd12...27b12e009
0.00001449 ETH
Transfer198688502024-05-14 14:32:23336 days ago1715697143
0x9FB3fd12...27b12e009
0.00004335 ETH
Transfer196987472024-04-20 19:35:23360 days ago1713641723
0x9FB3fd12...27b12e009
0.0000499 ETH
Transfer196956562024-04-20 9:12:47360 days ago1713604367
0x9FB3fd12...27b12e009
0.00004995 ETH
Transfer196905422024-04-19 16:02:11361 days ago1713542531
0x9FB3fd12...27b12e009
0.00010235 ETH
Transfer196184982024-04-09 13:51:35371 days ago1712670695
0x9FB3fd12...27b12e009
0.0000445 ETH
Transfer196067682024-04-07 22:24:47372 days ago1712528687
0x9FB3fd12...27b12e009
0.00027899 ETH
Transfer196007872024-04-07 2:16:47373 days ago1712456207
0x9FB3fd12...27b12e009
0.00004499 ETH
Transfer195812522024-04-04 8:36:47376 days ago1712219807
0x9FB3fd12...27b12e009
0.00004499 ETH
Transfer195812462024-04-04 8:35:35376 days ago1712219735
0x9FB3fd12...27b12e009
0.0006 ETH
Transfer195459562024-03-30 9:43:23381 days ago1711791803
0x9FB3fd12...27b12e009
0.0000009 ETH
Transfer195333452024-03-28 15:00:35383 days ago1711638035
0x9FB3fd12...27b12e009
0.00003999 ETH
Transfer195316862024-03-28 9:21:35383 days ago1711617695
0x9FB3fd12...27b12e009
0.0006 ETH
Transfer194964962024-03-23 9:45:59388 days ago1711187159
0x9FB3fd12...27b12e009
0.0000999 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RoyaltiesSplitter

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-02-16
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(token, account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

contract RoyaltiesSplitter is Ownable, PaymentSplitter {

    uint private teamLength;

    constructor(address[] memory _team, uint[] memory _teamShares)
    PaymentSplitter(_team, _teamShares) {
        teamLength = _team.length;
    }

    function releaseAll() external {
        for(uint i = 0 ; i < teamLength ; i++) {
            release(payable(payee(i)));
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","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"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001485380380620014858339810160408190526200003491620004a1565b8181620000413362000182565b8051825114620000b35760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001065760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000aa565b60005b825181101562000172576200015d8382815181106200012c576200012c6200057f565b60200260200101518383815181106200014957620001496200057f565b6020026020010151620001d260201b60201c565b806200016981620005ab565b91505062000109565b5050915160085550620005e49050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200023f5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000aa565b60008111620002915760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000aa565b6001600160a01b038216600090815260036020526040902054156200030d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000aa565b6005805460018082019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03851690811790915560009081526003602052604090208290555462000376908290620005c9565b600155604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004005762000400620003bf565b604052919050565b60006001600160401b03821115620004245762000424620003bf565b5060051b60200190565b600082601f8301126200044057600080fd5b8151602062000459620004538362000408565b620003d5565b82815260059290921b840181019181810190868411156200047957600080fd5b8286015b848110156200049657805183529183019183016200047d565b509695505050505050565b60008060408385031215620004b557600080fd5b82516001600160401b0380821115620004cd57600080fd5b818501915085601f830112620004e257600080fd5b81516020620004f5620004538362000408565b82815260059290921b840181019181810190898411156200051557600080fd5b948201945b838610156200054c5785516001600160a01b03811681146200053c5760008081fd5b825294820194908201906200051a565b918801519196509093505050808211156200056657600080fd5b5062000575858286016200042e565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620005c257620005c262000595565b5060010190565b60008219821115620005df57620005df62000595565b500190565b610e9180620005f46000396000f3fe6080604052600436106100ec5760003560e01c80638da5cb5b1161008a578063ce7c2ac211610059578063ce7c2ac2146102dc578063d79779b214610312578063e33b7de314610348578063f2fde38b1461035d57600080fd5b80638da5cb5b146102485780639852595c14610266578063a3f8eace1461029c578063c45ac050146102bc57600080fd5b806348b75044116100c657806348b75044146101c65780635be7fde8146101e6578063715018a6146101fb5780638b83209b1461021057600080fd5b8063191655871461013a5780633a98ef391461015c578063406072a91461018057600080fd5b36610135577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561014657600080fd5b5061015a610155366004610bea565b61037d565b005b34801561016857600080fd5b506001545b6040519081526020015b60405180910390f35b34801561018c57600080fd5b5061016d61019b366004610c07565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156101d257600080fd5b5061015a6101e1366004610c07565b61047c565b3480156101f257600080fd5b5061015a61059c565b34801561020757600080fd5b5061015a6105ca565b34801561021c57600080fd5b5061023061022b366004610c40565b6105de565b6040516001600160a01b039091168152602001610177565b34801561025457600080fd5b506000546001600160a01b0316610230565b34801561027257600080fd5b5061016d610281366004610bea565b6001600160a01b031660009081526004602052604090205490565b3480156102a857600080fd5b5061016d6102b7366004610bea565b61060e565b3480156102c857600080fd5b5061016d6102d7366004610c07565b610656565b3480156102e857600080fd5b5061016d6102f7366004610bea565b6001600160a01b031660009081526003602052604090205490565b34801561031e57600080fd5b5061016d61032d366004610bea565b6001600160a01b031660009081526006602052604090205490565b34801561035457600080fd5b5060025461016d565b34801561036957600080fd5b5061015a610378366004610bea565b610721565b6001600160a01b0381166000908152600360205260409020546103bb5760405162461bcd60e51b81526004016103b290610c59565b60405180910390fd5b60006103c68261060e565b9050806103e55760405162461bcd60e51b81526004016103b290610c9f565b6001600160a01b0382166000908152600460205260408120805483929061040d908490610d00565b9250508190555080600260008282546104269190610d00565b9091555061043690508282610797565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6001600160a01b0381166000908152600360205260409020546104b15760405162461bcd60e51b81526004016103b290610c59565b60006104bd8383610656565b9050806104dc5760405162461bcd60e51b81526004016103b290610c9f565b6001600160a01b03808416600090815260076020908152604080832093861683529290529081208054839290610513908490610d00565b90915550506001600160a01b03831660009081526006602052604081208054839290610540908490610d00565b9091555061055190508383836108b5565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b60005b6008548110156105c7576105b5610155826105de565b806105bf81610d18565b91505061059f565b50565b6105d2610907565b6105dc6000610961565b565b6000600582815481106105f3576105f3610d33565b6000918252602090912001546001600160a01b031692915050565b60008061061a60025490565b6106249047610d00565b905061064f838261064a866001600160a01b031660009081526004602052604090205490565b6109b1565b9392505050565b6001600160a01b03821660009081526006602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d99190610d49565b6106e39190610d00565b6001600160a01b0380861660009081526007602090815260408083209388168352929052205490915061071990849083906109b1565b949350505050565b610729610907565b6001600160a01b03811661078e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b2565b6105c781610961565b804710156107e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103b2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610834576040519150601f19603f3d011682016040523d82523d6000602084013e610839565b606091505b50509050806108b05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103b2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108b09084906109ef565b6000546001600160a01b031633146105dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b038416600090815260036020526040812054909183916109db9086610d62565b6109e59190610d81565b6107199190610da3565b6000610a44826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ac19092919063ffffffff16565b8051909150156108b05780806020019051810190610a629190610dba565b6108b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b2565b60606107198484600085856001600160a01b0385163b610b235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b2565b600080866001600160a01b03168587604051610b3f9190610e0c565b60006040518083038185875af1925050503d8060008114610b7c576040519150601f19603f3d011682016040523d82523d6000602084013e610b81565b606091505b5091509150610b91828286610b9c565b979650505050505050565b60608315610bab57508161064f565b825115610bbb5782518084602001fd5b8160405162461bcd60e51b81526004016103b29190610e28565b6001600160a01b03811681146105c757600080fd5b600060208284031215610bfc57600080fd5b813561064f81610bd5565b60008060408385031215610c1a57600080fd5b8235610c2581610bd5565b91506020830135610c3581610bd5565b809150509250929050565b600060208284031215610c5257600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610d1357610d13610cea565b500190565b6000600019821415610d2c57610d2c610cea565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610d5b57600080fd5b5051919050565b6000816000190483118215151615610d7c57610d7c610cea565b500290565b600082610d9e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610db557610db5610cea565b500390565b600060208284031215610dcc57600080fd5b8151801515811461064f57600080fd5b60005b83811015610df7578181015183820152602001610ddf565b83811115610e06576000848401525b50505050565b60008251610e1e818460208701610ddc565b9190910192915050565b6020815260008251806020840152610e47816040850160208701610ddc565b601f01601f1916919091016040019291505056fea26469706673582212206f6d698cc34d2ead5392d6544ff6290e0219504bd79eaeb8f264c68e8c46b6a264736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000009000000000000000000000000942d14ee3c0817880cffe6f6e0a920ca7ba6f337000000000000000000000000fefde188b2e799fabde389ba0b912bcb2d2ec66d000000000000000000000000c60417f8a9ad0b2381f1a5efa0de7dcabec9dcf600000000000000000000000056f62f306accdeaae74761d78347947108e7ebc10000000000000000000000008aa8f5d3750e83cb78bcf1d6002eff5743034db10000000000000000000000006f7225010d443396ee3489ff6caf61387c9a1c45000000000000000000000000a9a12ec51dfd26fddd7fe85a5a6969601c914157000000000000000000000000893701b4ff0978225e3bd7a02020642e98ac91dd00000000000000000000000033cb15b80ca72ae2ca94b01cb352dcc96b4d4ea600000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c80638da5cb5b1161008a578063ce7c2ac211610059578063ce7c2ac2146102dc578063d79779b214610312578063e33b7de314610348578063f2fde38b1461035d57600080fd5b80638da5cb5b146102485780639852595c14610266578063a3f8eace1461029c578063c45ac050146102bc57600080fd5b806348b75044116100c657806348b75044146101c65780635be7fde8146101e6578063715018a6146101fb5780638b83209b1461021057600080fd5b8063191655871461013a5780633a98ef391461015c578063406072a91461018057600080fd5b36610135577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561014657600080fd5b5061015a610155366004610bea565b61037d565b005b34801561016857600080fd5b506001545b6040519081526020015b60405180910390f35b34801561018c57600080fd5b5061016d61019b366004610c07565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156101d257600080fd5b5061015a6101e1366004610c07565b61047c565b3480156101f257600080fd5b5061015a61059c565b34801561020757600080fd5b5061015a6105ca565b34801561021c57600080fd5b5061023061022b366004610c40565b6105de565b6040516001600160a01b039091168152602001610177565b34801561025457600080fd5b506000546001600160a01b0316610230565b34801561027257600080fd5b5061016d610281366004610bea565b6001600160a01b031660009081526004602052604090205490565b3480156102a857600080fd5b5061016d6102b7366004610bea565b61060e565b3480156102c857600080fd5b5061016d6102d7366004610c07565b610656565b3480156102e857600080fd5b5061016d6102f7366004610bea565b6001600160a01b031660009081526003602052604090205490565b34801561031e57600080fd5b5061016d61032d366004610bea565b6001600160a01b031660009081526006602052604090205490565b34801561035457600080fd5b5060025461016d565b34801561036957600080fd5b5061015a610378366004610bea565b610721565b6001600160a01b0381166000908152600360205260409020546103bb5760405162461bcd60e51b81526004016103b290610c59565b60405180910390fd5b60006103c68261060e565b9050806103e55760405162461bcd60e51b81526004016103b290610c9f565b6001600160a01b0382166000908152600460205260408120805483929061040d908490610d00565b9250508190555080600260008282546104269190610d00565b9091555061043690508282610797565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6001600160a01b0381166000908152600360205260409020546104b15760405162461bcd60e51b81526004016103b290610c59565b60006104bd8383610656565b9050806104dc5760405162461bcd60e51b81526004016103b290610c9f565b6001600160a01b03808416600090815260076020908152604080832093861683529290529081208054839290610513908490610d00565b90915550506001600160a01b03831660009081526006602052604081208054839290610540908490610d00565b9091555061055190508383836108b5565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b60005b6008548110156105c7576105b5610155826105de565b806105bf81610d18565b91505061059f565b50565b6105d2610907565b6105dc6000610961565b565b6000600582815481106105f3576105f3610d33565b6000918252602090912001546001600160a01b031692915050565b60008061061a60025490565b6106249047610d00565b905061064f838261064a866001600160a01b031660009081526004602052604090205490565b6109b1565b9392505050565b6001600160a01b03821660009081526006602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d99190610d49565b6106e39190610d00565b6001600160a01b0380861660009081526007602090815260408083209388168352929052205490915061071990849083906109b1565b949350505050565b610729610907565b6001600160a01b03811661078e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b2565b6105c781610961565b804710156107e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103b2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610834576040519150601f19603f3d011682016040523d82523d6000602084013e610839565b606091505b50509050806108b05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103b2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108b09084906109ef565b6000546001600160a01b031633146105dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b038416600090815260036020526040812054909183916109db9086610d62565b6109e59190610d81565b6107199190610da3565b6000610a44826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ac19092919063ffffffff16565b8051909150156108b05780806020019051810190610a629190610dba565b6108b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b2565b60606107198484600085856001600160a01b0385163b610b235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b2565b600080866001600160a01b03168587604051610b3f9190610e0c565b60006040518083038185875af1925050503d8060008114610b7c576040519150601f19603f3d011682016040523d82523d6000602084013e610b81565b606091505b5091509150610b91828286610b9c565b979650505050505050565b60608315610bab57508161064f565b825115610bbb5782518084602001fd5b8160405162461bcd60e51b81526004016103b29190610e28565b6001600160a01b03811681146105c757600080fd5b600060208284031215610bfc57600080fd5b813561064f81610bd5565b60008060408385031215610c1a57600080fd5b8235610c2581610bd5565b91506020830135610c3581610bd5565b809150509250929050565b600060208284031215610c5257600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610d1357610d13610cea565b500190565b6000600019821415610d2c57610d2c610cea565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610d5b57600080fd5b5051919050565b6000816000190483118215151615610d7c57610d7c610cea565b500290565b600082610d9e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610db557610db5610cea565b500390565b600060208284031215610dcc57600080fd5b8151801515811461064f57600080fd5b60005b83811015610df7578181015183820152602001610ddf565b83811115610e06576000848401525b50505050565b60008251610e1e818460208701610ddc565b9190910192915050565b6020815260008251806020840152610e47816040850160208701610ddc565b601f01601f1916919091016040019291505056fea26469706673582212206f6d698cc34d2ead5392d6544ff6290e0219504bd79eaeb8f264c68e8c46b6a264736f6c634300080c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000009000000000000000000000000942d14ee3c0817880cffe6f6e0a920ca7ba6f337000000000000000000000000fefde188b2e799fabde389ba0b912bcb2d2ec66d000000000000000000000000c60417f8a9ad0b2381f1a5efa0de7dcabec9dcf600000000000000000000000056f62f306accdeaae74761d78347947108e7ebc10000000000000000000000008aa8f5d3750e83cb78bcf1d6002eff5743034db10000000000000000000000006f7225010d443396ee3489ff6caf61387c9a1c45000000000000000000000000a9a12ec51dfd26fddd7fe85a5a6969601c914157000000000000000000000000893701b4ff0978225e3bd7a02020642e98ac91dd00000000000000000000000033cb15b80ca72ae2ca94b01cb352dcc96b4d4ea600000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _team (address[]): 0x942d14eE3c0817880CfFE6F6E0A920ca7bA6F337,0xFEFdE188B2E799fabDe389ba0B912BCb2D2ec66D,0xc60417F8a9aD0b2381F1A5efA0De7dCabeC9dcf6,0x56F62F306aCCdEaAE74761d78347947108E7ebC1,0x8Aa8f5d3750e83CB78Bcf1D6002EFf5743034db1,0x6F7225010D443396EE3489FF6Caf61387C9a1c45,0xA9a12ec51DFd26FDdD7FE85a5A6969601c914157,0x893701B4ff0978225e3Bd7a02020642E98AC91dD,0x33Cb15B80ca72Ae2CA94b01cB352Dcc96B4d4eA6
Arg [1] : _teamShares (uint256[]): 50,30,5,10,1,1,1,1,1

-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [3] : 000000000000000000000000942d14ee3c0817880cffe6f6e0a920ca7ba6f337
Arg [4] : 000000000000000000000000fefde188b2e799fabde389ba0b912bcb2d2ec66d
Arg [5] : 000000000000000000000000c60417f8a9ad0b2381f1a5efa0de7dcabec9dcf6
Arg [6] : 00000000000000000000000056f62f306accdeaae74761d78347947108e7ebc1
Arg [7] : 0000000000000000000000008aa8f5d3750e83cb78bcf1d6002eff5743034db1
Arg [8] : 0000000000000000000000006f7225010d443396ee3489ff6caf61387c9a1c45
Arg [9] : 000000000000000000000000a9a12ec51dfd26fddd7fe85a5a6969601c914157
Arg [10] : 000000000000000000000000893701b4ff0978225e3bd7a02020642e98ac91dd
Arg [11] : 00000000000000000000000033cb15b80ca72ae2ca94b01cb352dcc96b4d4ea6
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [14] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000001


Deployed Bytecode Sourcemap

25636:396:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20782:40;8502:10;20782:40;;;-1:-1:-1;;;;;206:32:1;;;188:51;;20812:9:0;270:2:1;255:18;;248:34;161:18;20782:40:0;;;;;;;25636:396;;;;;23303:453;;;;;;;;;;-1:-1:-1;23303:453:0;;;;;:::i;:::-;;:::i;:::-;;20913:91;;;;;;;;;;-1:-1:-1;20984:12:0;;20913:91;;;851:25:1;;;839:2;824:18;20913:91:0;;;;;;;;22042:135;;;;;;;;;;-1:-1:-1;22042:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;22139:21:0;;;22112:7;22139:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;22042:135;24024:514;;;;;;;;;;-1:-1:-1;24024:514:0;;;;;:::i;:::-;;:::i;25888:141::-;;;;;;;;;;;;;:::i;9854:103::-;;;;;;;;;;;;;:::i;22268:100::-;;;;;;;;;;-1:-1:-1;22268:100:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1659:32:1;;;1641:51;;1629:2;1614:18;22268:100:0;1495:203:1;9206:87:0;;;;;;;;;;-1:-1:-1;9252:7:0;9279:6;-1:-1:-1;;;;;9279:6:0;9206:87;;21764:109;;;;;;;;;;-1:-1:-1;21764:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;21847:18:0;21820:7;21847:18;;;:9;:18;;;;;;;21764:109;22458:225;;;;;;;;;;-1:-1:-1;22458:225:0;;;;;:::i;:::-;;:::i;22843:260::-;;;;;;;;;;-1:-1:-1;22843:260:0;;;;;:::i;:::-;;:::i;21560:105::-;;;;;;;;;;-1:-1:-1;21560:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;21641:16:0;21614:7;21641:16;;;:7;:16;;;;;;;21560:105;21350:119;;;;;;;;;;-1:-1:-1;21350:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;21435:26:0;21408:7;21435:26;;;:19;:26;;;;;;;21350:119;21098:95;;;;;;;;;;-1:-1:-1;21171:14:0;;21098:95;;10112:201;;;;;;;;;;-1:-1:-1;10112:201:0;;;;;:::i;:::-;;:::i;23303:453::-;-1:-1:-1;;;;;23379:16:0;;23398:1;23379:16;;;:7;:16;;;;;;23371:71;;;;-1:-1:-1;;;23371:71:0;;;;;;;:::i;:::-;;;;;;;;;23455:15;23473:19;23484:7;23473:10;:19::i;:::-;23455:37;-1:-1:-1;23513:12:0;23505:68;;;;-1:-1:-1;;;23505:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;23586:18:0;;;;;;:9;:18;;;;;:29;;23608:7;;23586:18;:29;;23608:7;;23586:29;:::i;:::-;;;;;;;;23644:7;23626:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;23664:35:0;;-1:-1:-1;23682:7:0;23691;23664:17;:35::i;:::-;23715:33;;;-1:-1:-1;;;;;206:32:1;;188:51;;270:2;255:18;;248:34;;;23715:33:0;;161:18:1;23715:33:0;;;;;;;23360:396;23303:453;:::o;24024:514::-;-1:-1:-1;;;;;24106:16:0;;24125:1;24106:16;;;:7;:16;;;;;;24098:71;;;;-1:-1:-1;;;24098:71:0;;;;;;;:::i;:::-;24182:15;24200:26;24211:5;24218:7;24200:10;:26::i;:::-;24182:44;-1:-1:-1;24247:12:0;24239:68;;;;-1:-1:-1;;;24239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;24320:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;;;:41;;24354:7;;24320:21;:41;;24354:7;;24320:41;:::i;:::-;;;;-1:-1:-1;;;;;;;24372:26:0;;;;;;:19;:26;;;;;:37;;24402:7;;24372:26;:37;;24402:7;;24372:37;:::i;:::-;;;;-1:-1:-1;24422:47:0;;-1:-1:-1;24445:5:0;24452:7;24461;24422:22;:47::i;:::-;24485:45;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;24485:45:0;;;;;161:18:1;24485:45:0;;;;;;;24087:451;24024:514;;:::o;25888:141::-;25934:6;25930:92;25951:10;;25947:1;:14;25930:92;;;25984:26;26000:8;26006:1;26000:5;:8::i;25984:26::-;25964:3;;;;:::i;:::-;;;;25930:92;;;;25888:141::o;9854:103::-;9092:13;:11;:13::i;:::-;9919:30:::1;9946:1;9919:18;:30::i;:::-;9854:103::o:0;22268:100::-;22319:7;22346;22354:5;22346:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;22346:14:0;;22268:100;-1:-1:-1;;22268:100:0:o;22458:225::-;22516:7;22536:21;22584:15;21171:14;;;21098:95;22584:15;22560:39;;:21;:39;:::i;:::-;22536:63;;22617:58;22633:7;22642:13;22657:17;22666:7;-1:-1:-1;;;;;21847:18:0;21820:7;21847:18;;;:9;:18;;;;;;;21764:109;22657:17;22617:15;:58::i;:::-;22610:65;22458:225;-1:-1:-1;;;22458:225:0:o;22843:260::-;-1:-1:-1;;;;;21435:26:0;;22915:7;21435:26;;;:19;:26;;;;;;22915:7;;22959:30;;-1:-1:-1;;;22959:30:0;;22983:4;22959:30;;;1641:51:1;-1:-1:-1;;;;;22959:15:0;;;;;1614:18:1;;22959:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;22139:21:0;;;22112:7;22139:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;22935:77;;-1:-1:-1;23030:65:0;;23046:7;;22935:77;;22617:15;:58::i;23030:65::-;23023:72;22843:260;-1:-1:-1;;;;22843:260:0:o;10112:201::-;9092:13;:11;:13::i;:::-;-1:-1:-1;;;;;10201:22:0;::::1;10193:73;;;::::0;-1:-1:-1;;;10193:73:0;;4271:2:1;10193:73:0::1;::::0;::::1;4253:21:1::0;4310:2;4290:18;;;4283:30;4349:34;4329:18;;;4322:62;-1:-1:-1;;;4400:18:1;;;4393:36;4446:19;;10193:73:0::1;4069:402:1::0;10193:73:0::1;10277:28;10296:8;10277:18;:28::i;2330:317::-:0;2445:6;2420:21;:31;;2412:73;;;;-1:-1:-1;;;2412:73:0;;4678:2:1;2412:73:0;;;4660:21:1;4717:2;4697:18;;;4690:30;4756:31;4736:18;;;4729:59;4805:18;;2412:73:0;4476:353:1;2412:73:0;2499:12;2517:9;-1:-1:-1;;;;;2517:14:0;2539:6;2517:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2498:52;;;2569:7;2561:78;;;;-1:-1:-1;;;2561:78:0;;5246:2:1;2561:78:0;;;5228:21:1;5285:2;5265:18;;;5258:30;5324:34;5304:18;;;5297:62;5395:28;5375:18;;;5368:56;5441:19;;2561:78:0;5044:422:1;2561:78:0;2401:246;2330:317;;:::o;15052:211::-;15196:58;;;-1:-1:-1;;;;;206:32:1;;15196:58:0;;;188:51:1;255:18;;;;248:34;;;15196:58:0;;;;;;;;;;161:18:1;;;;15196:58:0;;;;;;;;-1:-1:-1;;;;;15196:58:0;-1:-1:-1;;;15196:58:0;;;15169:86;;15189:5;;15169:19;:86::i;9371:132::-;9252:7;9279:6;-1:-1:-1;;;;;9279:6:0;8502:10;9435:23;9427:68;;;;-1:-1:-1;;;9427:68:0;;5673:2:1;9427:68:0;;;5655:21:1;;;5692:18;;;5685:30;5751:34;5731:18;;;5724:62;5803:18;;9427:68:0;5471:356:1;10473:191:0;10547:16;10566:6;;-1:-1:-1;;;;;10583:17:0;;;-1:-1:-1;;;;;;10583:17:0;;;;;;10616:40;;10566:6;;;;;;;10616:40;;10547:16;10616:40;10536:128;10473:191;:::o;24716:248::-;24926:12;;-1:-1:-1;;;;;24906:16:0;;24862:7;24906:16;;;:7;:16;;;;;;24862:7;;24941:15;;24890:32;;:13;:32;:::i;:::-;24889:49;;;;:::i;:::-;:67;;;;:::i;18119:716::-;18543:23;18569:69;18597:4;18569:69;;;;;;;;;;;;;;;;;18577:5;-1:-1:-1;;;;;18569:27:0;;;:69;;;;;:::i;:::-;18653:17;;18543:95;;-1:-1:-1;18653:21:0;18649:179;;18750:10;18739:30;;;;;;;;;;;;:::i;:::-;18731:85;;;;-1:-1:-1;;;18731:85:0;;6841:2:1;18731:85:0;;;6823:21:1;6880:2;6860:18;;;6853:30;6919:34;6899:18;;;6892:62;-1:-1:-1;;;6970:18:1;;;6963:40;7020:19;;18731:85:0;6639:406:1;3814:229:0;3951:12;3983:52;4005:6;4013:4;4019:1;4022:12;3951;-1:-1:-1;;;;;1364:19:0;;;5221:60;;;;-1:-1:-1;;;5221:60:0;;7659:2:1;5221:60:0;;;7641:21:1;7698:2;7678:18;;;7671:30;7737:31;7717:18;;;7710:59;7786:18;;5221:60:0;7457:353:1;5221:60:0;5295:12;5309:23;5336:6;-1:-1:-1;;;;;5336:11:0;5355:5;5362:4;5336:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5294:73;;;;5385:51;5402:7;5411:10;5423:12;5385:16;:51::i;:::-;5378:58;4934:510;-1:-1:-1;;;;;;;4934:510:0:o;7620:762::-;7770:12;7799:7;7795:580;;;-1:-1:-1;7830:10:0;7823:17;;7795:580;7944:17;;:21;7940:424;;8192:10;8186:17;8253:15;8240:10;8236:2;8232:19;8225:44;7940:424;8335:12;8328:20;;-1:-1:-1;;;8328:20:0;;;;;;;;:::i;293:139:1:-;-1:-1:-1;;;;;376:31:1;;366:42;;356:70;;422:1;419;412:12;437:263;504:6;557:2;545:9;536:7;532:23;528:32;525:52;;;573:1;570;563:12;525:52;612:9;599:23;631:39;664:5;631:39;:::i;887:418::-;969:6;977;1030:2;1018:9;1009:7;1005:23;1001:32;998:52;;;1046:1;1043;1036:12;998:52;1085:9;1072:23;1104:39;1137:5;1104:39;:::i;:::-;1162:5;-1:-1:-1;1219:2:1;1204:18;;1191:32;1232:41;1191:32;1232:41;:::i;:::-;1292:7;1282:17;;;887:418;;;;;:::o;1310:180::-;1369:6;1422:2;1410:9;1401:7;1397:23;1393:32;1390:52;;;1438:1;1435;1428:12;1390:52;-1:-1:-1;1461:23:1;;1310:180;-1:-1:-1;1310:180:1:o;2237:402::-;2439:2;2421:21;;;2478:2;2458:18;;;2451:30;2517:34;2512:2;2497:18;;2490:62;-1:-1:-1;;;2583:2:1;2568:18;;2561:36;2629:3;2614:19;;2237:402::o;2644:407::-;2846:2;2828:21;;;2885:2;2865:18;;;2858:30;2924:34;2919:2;2904:18;;2897:62;-1:-1:-1;;;2990:2:1;2975:18;;2968:41;3041:3;3026:19;;2644:407::o;3056:127::-;3117:10;3112:3;3108:20;3105:1;3098:31;3148:4;3145:1;3138:15;3172:4;3169:1;3162:15;3188:128;3228:3;3259:1;3255:6;3252:1;3249:13;3246:39;;;3265:18;;:::i;:::-;-1:-1:-1;3301:9:1;;3188:128::o;3608:135::-;3647:3;-1:-1:-1;;3668:17:1;;3665:43;;;3688:18;;:::i;:::-;-1:-1:-1;3735:1:1;3724:13;;3608:135::o;3748:127::-;3809:10;3804:3;3800:20;3797:1;3790:31;3840:4;3837:1;3830:15;3864:4;3861:1;3854:15;3880:184;3950:6;4003:2;3991:9;3982:7;3978:23;3974:32;3971:52;;;4019:1;4016;4009:12;3971:52;-1:-1:-1;4042:16:1;;3880:184;-1:-1:-1;3880:184:1:o;5832:168::-;5872:7;5938:1;5934;5930:6;5926:14;5923:1;5920:21;5915:1;5908:9;5901:17;5897:45;5894:71;;;5945:18;;:::i;:::-;-1:-1:-1;5985:9:1;;5832:168::o;6005:217::-;6045:1;6071;6061:132;;6115:10;6110:3;6106:20;6103:1;6096:31;6150:4;6147:1;6140:15;6178:4;6175:1;6168:15;6061:132;-1:-1:-1;6207:9:1;;6005:217::o;6227:125::-;6267:4;6295:1;6292;6289:8;6286:34;;;6300:18;;:::i;:::-;-1:-1:-1;6337:9:1;;6227:125::o;6357:277::-;6424:6;6477:2;6465:9;6456:7;6452:23;6448:32;6445:52;;;6493:1;6490;6483:12;6445:52;6525:9;6519:16;6578:5;6571:13;6564:21;6557:5;6554:32;6544:60;;6600:1;6597;6590:12;7815:258;7887:1;7897:113;7911:6;7908:1;7905:13;7897:113;;;7987:11;;;7981:18;7968:11;;;7961:39;7933:2;7926:10;7897:113;;;8028:6;8025:1;8022:13;8019:48;;;8063:1;8054:6;8049:3;8045:16;8038:27;8019:48;;7815:258;;;:::o;8078:274::-;8207:3;8245:6;8239:13;8261:53;8307:6;8302:3;8295:4;8287:6;8283:17;8261:53;:::i;:::-;8330:16;;;;;8078:274;-1:-1:-1;;8078:274:1:o;8357:383::-;8506:2;8495:9;8488:21;8469:4;8538:6;8532:13;8581:6;8576:2;8565:9;8561:18;8554:34;8597:66;8656:6;8651:2;8640:9;8636:18;8631:2;8623:6;8619:15;8597:66;:::i;:::-;8724:2;8703:15;-1:-1:-1;;8699:29:1;8684:45;;;;8731:2;8680:54;;8357:383;-1:-1:-1;;8357:383:1:o

Swarm Source

ipfs://6f6d698cc34d2ead5392d6544ff6290e0219504bd79eaeb8f264c68e8c46b6a2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.