ETH Price: $3,266.52 (-0.59%)

Contract

0x6EC56aB97C3e6a97AD3cDae007e21f5Cf1E55F54
 

Overview

ETH Balance

2.5536 ETH

Eth Value

$8,341.39 (@ $3,266.52/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw152382712022-07-29 15:49:22904 days ago1659109762IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0008562419.59956248
Withdraw141417172022-02-04 20:27:371079 days ago1644006457IN
0x6EC56aB9...Cf1E55F54
0 ETH0.00742819122.20034915
Withdraw134634622021-10-21 21:39:261185 days ago1634852366IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0022905272.97676672
Withdraw134634482021-10-21 21:36:041185 days ago1634852164IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0027015786.07307189
Withdraw134634462021-10-21 21:35:111185 days ago1634852111IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0031803272.79799041
Withdraw126024142021-06-09 20:14:311319 days ago1623269671IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0008510114
Withdraw124788362021-05-21 16:46:491338 days ago1621615609IN
0x6EC56aB9...Cf1E55F54
0 ETH0.00981376126.00000145
Transfer Ownersh...121936882021-04-07 16:13:481382 days ago1617812028IN
0x6EC56aB9...Cf1E55F54
0 ETH0.00420403136
Update121429402021-03-30 20:53:571390 days ago1617137637IN
0x6EC56aB9...Cf1E55F54
0 ETH0.0142985500

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
152382712022-07-29 15:49:22904 days ago1659109762
0x6EC56aB9...Cf1E55F54
0.02 ETH
141417172022-02-04 20:27:371079 days ago1644006457
0x6EC56aB9...Cf1E55F54
0.3648 ETH
134634462021-10-21 21:35:111185 days ago1634852111
0x6EC56aB9...Cf1E55F54
0.02 ETH
134234522021-10-15 15:30:361191 days ago1634311836
0x6EC56aB9...Cf1E55F54
0.096 ETH
130966192021-08-25 20:20:291242 days ago1629922829
0x6EC56aB9...Cf1E55F54
0.104 ETH
126024142021-06-09 20:14:311319 days ago1623269671
0x6EC56aB9...Cf1E55F54
0.3448 ETH
124788362021-05-21 16:46:491338 days ago1621615609
0x6EC56aB9...Cf1E55F54
0.3448 ETH
124734402021-05-20 20:29:511339 days ago1621542591
0x6EC56aB9...Cf1E55F54
0.112 ETH
124282222021-05-13 20:24:451346 days ago1620937485
0x6EC56aB9...Cf1E55F54
0.104 ETH
123762742021-05-05 19:57:361354 days ago1620244656
0x6EC56aB9...Cf1E55F54
0.112 ETH
123315452021-04-28 22:14:411361 days ago1619648081
0x6EC56aB9...Cf1E55F54
0.104 ETH
123183232021-04-26 21:13:141363 days ago1619471594
0x6EC56aB9...Cf1E55F54
0.104 ETH
121754302021-04-04 20:48:561385 days ago1617569336
0x6EC56aB9...Cf1E55F54
0.168 ETH
121611492021-04-02 16:31:051387 days ago1617381065
0x6EC56aB9...Cf1E55F54
0.16 ETH
121495552021-03-31 21:22:071389 days ago1617225727
0x6EC56aB9...Cf1E55F54
0.192 ETH
121491512021-03-31 19:56:281389 days ago1617220588
0x6EC56aB9...Cf1E55F54
0.184 ETH
121490072021-03-31 19:22:001389 days ago1617218520
0x6EC56aB9...Cf1E55F54
0.184 ETH
121490052021-03-31 19:21:291389 days ago1617218489
0x6EC56aB9...Cf1E55F54
0.176 ETH
121489832021-03-31 19:15:171389 days ago1617218117
0x6EC56aB9...Cf1E55F54
0.168 ETH
121489832021-03-31 19:15:171389 days ago1617218117
0x6EC56aB9...Cf1E55F54
0.16 ETH
121489832021-03-31 19:15:171389 days ago1617218117
0x6EC56aB9...Cf1E55F54
0.152 ETH
121489782021-03-31 19:14:221389 days ago1617218062
0x6EC56aB9...Cf1E55F54
0.144 ETH
121489742021-03-31 19:13:281389 days ago1617218008
0x6EC56aB9...Cf1E55F54
0.136 ETH
121489652021-03-31 19:11:351389 days ago1617217895
0x6EC56aB9...Cf1E55F54
0.128 ETH
121489632021-03-31 19:11:281389 days ago1617217888
0x6EC56aB9...Cf1E55F54
0.12 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RoyaltyShare

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : RoyaltyShare.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.7.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155Holder.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

contract RoyaltyShare is Ownable, ERC1155Holder, ReentrancyGuard {
    using Address for address payable;
    using SafeMath for uint256;

    uint256 constant public MEMBER_COUNT = 10;

    uint256 public totalWithdrawn = 0;

    uint256[MEMBER_COUNT] public amountWithdrawn;
    address[MEMBER_COUNT] public members;

    constructor(address[MEMBER_COUNT] memory _members) {
        for (uint256 i = 0; i < MEMBER_COUNT; i++) {
            members[i] = _members[i];
        }
    }

    /// Member functions

    function withdraw(uint256 index) nonReentrant external {
        require(members[index] == msg.sender, "Sender not authorized");

        // (TotalWithdrawn + CurrentBalance) / MEMBER_COUNT => Each member's current total rewards
        uint256 totalMemberRoyalties = totalWithdrawn.add(address(this).balance).div(MEMBER_COUNT);

        // Current disbursement is total reward minus amount already claimecd
        uint256 royalty = totalMemberRoyalties.sub(amountWithdrawn[index]);

        // Increment the amount withdrawn for msg.sender
        amountWithdrawn[index] = amountWithdrawn[index].add(royalty);

        totalWithdrawn = totalWithdrawn.add(royalty);

        msg.sender.sendValue(royalty);
    }

    function update(uint256 index, address newOwner) external {
        require(members[index] == msg.sender, "Sender not authorized");
        members[index] = newOwner;
    }

    /// Helpful getters

    // Returns available royalties for a particular index
    function availableRoyalties(uint256 index) external view returns (uint256 royalty) {
        uint256 totalRewards = totalWithdrawn.add(address(this).balance).div(MEMBER_COUNT);
        royalty = totalRewards.sub(amountWithdrawn[index]);
    }

    function getIndex(address sender) external view returns (uint256) {
        for (uint i = 0; i < MEMBER_COUNT; i++) {
            if (sender == members[i]) {
                return i;
            }
        }
        revert('Address not found');
    }

    /// Admin

    // Contract owner can transfer any held 1155 tokens (eg for sale)
    function transfer(address tokenContract, uint256 tokenId, address newOwner) onlyOwner external {
        IERC1155(tokenContract).safeTransferFrom(address(this), newOwner, tokenId, 1, "");
    }

    // Enable royalty payments
    receive() external payable {}
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../../introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

File 4 of 12 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 5 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 8 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 9 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 10 of 12 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC1155Receiver.sol";
import "../../introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    constructor() internal {
        _registerInterface(
            ERC1155Receiver(address(0)).onERC1155Received.selector ^
            ERC1155Receiver(address(0)).onERC1155BatchReceived.selector
        );
    }
}

File 11 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../introspection/IERC165.sol";

/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

File 12 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[10]","name":"_members","type":"address[10]"}],"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"},{"inputs":[],"name":"MEMBER_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"amountWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"availableRoyalties","outputs":[{"internalType":"uint256","name":"royalty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"members","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600060035534801561001557600080fd5b50604051611057380380611057833981810160405261014081101561003957600080fd5b50600061004461010b565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061009e6301ffc9a760e01b61010f565b6100ae630271189760e51b61010f565b600160025560005b600a811015610104578181600a81106100cb57fe5b6020020151600e82600a81106100dd57fe5b0180546001600160a01b0319166001600160a01b03929092169190911790556001016100b6565b5050610196565b3390565b6001600160e01b0319808216141561016e576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b610eb2806101a56000396000f3fe6080604052600436106100ec5760003560e01c8063a5c1457b1161008a578063dbba0f0111610059578063dbba0f011461048a578063e68c24ae146104cd578063f23a6e6114610506578063f2fde38b146105dc576100f3565b8063a5c1457b1461022d578063b31610db14610242578063b996e5fa14610275578063bc197c811461029f576100f3565b80634b319713116100c65780634b319713146101a85780635daf08ca146101bd578063715018a6146102035780638da5cb5b14610218576100f3565b806301ffc9a7146100f85780632e1a7d4d1461014057806330b0d2271461016c576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061012c6004803603602081101561011b57600080fd5b50356001600160e01b03191661060f565b604080519115158252519081900360200190f35b34801561014c57600080fd5b5061016a6004803603602081101561016357600080fd5b5035610632565b005b34801561017857600080fd5b506101966004803603602081101561018f57600080fd5b503561077d565b60408051918252519081900360200190f35b3480156101b457600080fd5b506101966107bc565b3480156101c957600080fd5b506101e7600480360360208110156101e057600080fd5b50356107c2565b604080516001600160a01b039092168252519081900360200190f35b34801561020f57600080fd5b5061016a6107e2565b34801561022457600080fd5b506101e76108a0565b34801561023957600080fd5b506101966108af565b34801561024e57600080fd5b506101966004803603602081101561026557600080fd5b50356001600160a01b03166108b4565b34801561028157600080fd5b506101966004803603602081101561029857600080fd5b5035610934565b3480156102ab57600080fd5b5061046d600480360360a08110156102c257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061094b945050505050565b604080516001600160e01b03199092168252519081900360200190f35b34801561049657600080fd5b5061016a600480360360608110156104ad57600080fd5b506001600160a01b0381358116916020810135916040909101351661095c565b3480156104d957600080fd5b5061016a600480360360408110156104f057600080fd5b50803590602001356001600160a01b0316610a57565b34801561051257600080fd5b5061046d600480360360a081101561052957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561056857600080fd5b82018360208201111561057a57600080fd5b803590602001918460018302840111600160201b8311171561059b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aeb945050505050565b3480156105e857600080fd5b5061016a600480360360208110156105ff57600080fd5b50356001600160a01b0316610afc565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600280541415610689576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805533600e82600a811061069b57fe5b01546001600160a01b0316146106f0576040805162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b6000610712600a61070c47600354610c1090919063ffffffff16565b90610c6a565b9050600061072f600484600a811061072657fe5b01548390610cd1565b905061074a81600485600a811061074257fe5b015490610c10565b600484600a811061075757fe5b01556003546107669082610c10565b6003556107733382610d2e565b5050600160025550565b60008061079a600a61070c47600354610c1090919063ffffffff16565b90506107b5600484600a81106107ac57fe5b01548290610cd1565b9392505050565b60035481565b600e81600a81106107d257600080fd5b01546001600160a01b0316905081565b6107ea610e18565b6001600160a01b03166107fb6108a0565b6001600160a01b031614610856576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600a81565b6000805b600a8110156108f257600e81600a81106108ce57fe5b01546001600160a01b03848116911614156108ea57905061062d565b6001016108b8565b506040805162461bcd60e51b81526020600482015260116024820152701059191c995cdcc81b9bdd08199bdd5b99607a1b604482015290519081900360640190fd5b600481600a811061094457600080fd5b0154905081565b63bc197c8160e01b95945050505050565b610964610e18565b6001600160a01b03166109756108a0565b6001600160a01b0316146109d0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60408051637921219560e11b81523060048201526001600160a01b038381166024830152604482018590526001606483015260a06084830152600060a4830181905292519086169263f242432a9260c4808201939182900301818387803b158015610a3a57600080fd5b505af1158015610a4e573d6000803e3d6000fd5b50505050505050565b33600e83600a8110610a6557fe5b01546001600160a01b031614610aba576040805162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b80600e83600a8110610ac857fe5b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b63f23a6e6160e01b95945050505050565b610b04610e18565b6001600160a01b0316610b156108a0565b6001600160a01b031614610b70576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610bb55760405162461bcd60e51b8152600401808060200182810382526026815260200180610e1d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828201838110156107b5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211610cc0576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610cc957fe5b049392505050565b600082821115610d28576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b80471015610d83576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610dce576040519150601f19603f3d011682016040523d82523d6000602084013e610dd3565b606091505b5050905080610e135760405162461bcd60e51b815260040180806020018281038252603a815260200180610e43603a913960400191505060405180910390fd5b505050565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564a26469706673582212205a72df0b40c16442c577343431d9f3d7ca6a0d4d47800250306934a637e7eb9664736f6c6343000706003300000000000000000000000003a6863ce3e5ef4cdeb27b2aaada8fa13deda339000000000000000000000000d4569b20644d10d169b478287b7b9b33218a1e960000000000000000000000000d1afb32168b5890a388ca1dc6a2db05a3e54e57000000000000000000000000ec9b1804b894082520640d6798673f17da457416000000000000000000000000204b3890832745afee898bf0e7236e32d6a57b960000000000000000000000003ff370e3f6d37e1d7f30ea5b2b8f4059bae048c5000000000000000000000000749f01179f3f20d89c1fd95adfac9f6b14c34c660000000000000000000000008be49462e4f53d9f32e87abcce2d44119fd096b3000000000000000000000000ffadabe2392f8524214b351872f97ddf0dc1f26b0000000000000000000000000c7be57496d0556ec782b73bd1b2cfabd034419c

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c8063a5c1457b1161008a578063dbba0f0111610059578063dbba0f011461048a578063e68c24ae146104cd578063f23a6e6114610506578063f2fde38b146105dc576100f3565b8063a5c1457b1461022d578063b31610db14610242578063b996e5fa14610275578063bc197c811461029f576100f3565b80634b319713116100c65780634b319713146101a85780635daf08ca146101bd578063715018a6146102035780638da5cb5b14610218576100f3565b806301ffc9a7146100f85780632e1a7d4d1461014057806330b0d2271461016c576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061012c6004803603602081101561011b57600080fd5b50356001600160e01b03191661060f565b604080519115158252519081900360200190f35b34801561014c57600080fd5b5061016a6004803603602081101561016357600080fd5b5035610632565b005b34801561017857600080fd5b506101966004803603602081101561018f57600080fd5b503561077d565b60408051918252519081900360200190f35b3480156101b457600080fd5b506101966107bc565b3480156101c957600080fd5b506101e7600480360360208110156101e057600080fd5b50356107c2565b604080516001600160a01b039092168252519081900360200190f35b34801561020f57600080fd5b5061016a6107e2565b34801561022457600080fd5b506101e76108a0565b34801561023957600080fd5b506101966108af565b34801561024e57600080fd5b506101966004803603602081101561026557600080fd5b50356001600160a01b03166108b4565b34801561028157600080fd5b506101966004803603602081101561029857600080fd5b5035610934565b3480156102ab57600080fd5b5061046d600480360360a08110156102c257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061094b945050505050565b604080516001600160e01b03199092168252519081900360200190f35b34801561049657600080fd5b5061016a600480360360608110156104ad57600080fd5b506001600160a01b0381358116916020810135916040909101351661095c565b3480156104d957600080fd5b5061016a600480360360408110156104f057600080fd5b50803590602001356001600160a01b0316610a57565b34801561051257600080fd5b5061046d600480360360a081101561052957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561056857600080fd5b82018360208201111561057a57600080fd5b803590602001918460018302840111600160201b8311171561059b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aeb945050505050565b3480156105e857600080fd5b5061016a600480360360208110156105ff57600080fd5b50356001600160a01b0316610afc565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600280541415610689576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805533600e82600a811061069b57fe5b01546001600160a01b0316146106f0576040805162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b6000610712600a61070c47600354610c1090919063ffffffff16565b90610c6a565b9050600061072f600484600a811061072657fe5b01548390610cd1565b905061074a81600485600a811061074257fe5b015490610c10565b600484600a811061075757fe5b01556003546107669082610c10565b6003556107733382610d2e565b5050600160025550565b60008061079a600a61070c47600354610c1090919063ffffffff16565b90506107b5600484600a81106107ac57fe5b01548290610cd1565b9392505050565b60035481565b600e81600a81106107d257600080fd5b01546001600160a01b0316905081565b6107ea610e18565b6001600160a01b03166107fb6108a0565b6001600160a01b031614610856576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600a81565b6000805b600a8110156108f257600e81600a81106108ce57fe5b01546001600160a01b03848116911614156108ea57905061062d565b6001016108b8565b506040805162461bcd60e51b81526020600482015260116024820152701059191c995cdcc81b9bdd08199bdd5b99607a1b604482015290519081900360640190fd5b600481600a811061094457600080fd5b0154905081565b63bc197c8160e01b95945050505050565b610964610e18565b6001600160a01b03166109756108a0565b6001600160a01b0316146109d0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60408051637921219560e11b81523060048201526001600160a01b038381166024830152604482018590526001606483015260a06084830152600060a4830181905292519086169263f242432a9260c4808201939182900301818387803b158015610a3a57600080fd5b505af1158015610a4e573d6000803e3d6000fd5b50505050505050565b33600e83600a8110610a6557fe5b01546001600160a01b031614610aba576040805162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b80600e83600a8110610ac857fe5b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b63f23a6e6160e01b95945050505050565b610b04610e18565b6001600160a01b0316610b156108a0565b6001600160a01b031614610b70576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610bb55760405162461bcd60e51b8152600401808060200182810382526026815260200180610e1d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828201838110156107b5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211610cc0576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610cc957fe5b049392505050565b600082821115610d28576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b80471015610d83576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610dce576040519150601f19603f3d011682016040523d82523d6000602084013e610dd3565b606091505b5050905080610e135760405162461bcd60e51b815260040180806020018281038252603a815260200180610e43603a913960400191505060405180910390fd5b505050565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564a26469706673582212205a72df0b40c16442c577343431d9f3d7ca6a0d4d47800250306934a637e7eb9664736f6c63430007060033

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

00000000000000000000000003a6863ce3e5ef4cdeb27b2aaada8fa13deda339000000000000000000000000d4569b20644d10d169b478287b7b9b33218a1e960000000000000000000000000d1afb32168b5890a388ca1dc6a2db05a3e54e57000000000000000000000000ec9b1804b894082520640d6798673f17da457416000000000000000000000000204b3890832745afee898bf0e7236e32d6a57b960000000000000000000000003ff370e3f6d37e1d7f30ea5b2b8f4059bae048c5000000000000000000000000749f01179f3f20d89c1fd95adfac9f6b14c34c660000000000000000000000008be49462e4f53d9f32e87abcce2d44119fd096b3000000000000000000000000ffadabe2392f8524214b351872f97ddf0dc1f26b0000000000000000000000000c7be57496d0556ec782b73bd1b2cfabd034419c

-----Decoded View---------------
Arg [0] : _members (address[10]): 0x03A6863ce3E5ef4CdEb27b2AaaDa8FA13Deda339,0xd4569B20644D10D169B478287b7b9B33218a1e96,0x0D1aFb32168B5890A388CA1Dc6a2dB05a3e54E57,0xeC9B1804b894082520640D6798673f17dA457416,0x204b3890832745aFeE898Bf0e7236e32d6A57b96,0x3FF370e3f6D37e1D7F30eA5B2B8f4059BAE048C5,0x749F01179f3F20d89C1fd95adFac9f6B14C34c66,0x8bE49462e4F53D9f32e87aBcCE2d44119fD096b3,0xffadAbe2392f8524214B351872f97ddF0dc1F26b,0x0C7be57496D0556eC782B73Bd1B2cFaBd034419c

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000003a6863ce3e5ef4cdeb27b2aaada8fa13deda339
Arg [1] : 000000000000000000000000d4569b20644d10d169b478287b7b9b33218a1e96
Arg [2] : 0000000000000000000000000d1afb32168b5890a388ca1dc6a2db05a3e54e57
Arg [3] : 000000000000000000000000ec9b1804b894082520640d6798673f17da457416
Arg [4] : 000000000000000000000000204b3890832745afee898bf0e7236e32d6a57b96
Arg [5] : 0000000000000000000000003ff370e3f6d37e1d7f30ea5b2b8f4059bae048c5
Arg [6] : 000000000000000000000000749f01179f3f20d89c1fd95adfac9f6b14c34c66
Arg [7] : 0000000000000000000000008be49462e4f53d9f32e87abcce2d44119fd096b3
Arg [8] : 000000000000000000000000ffadabe2392f8524214b351872f97ddf0dc1f26b
Arg [9] : 0000000000000000000000000c7be57496d0556ec782b73bd1b2cfabd034419c


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
[ 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.