Contract 0x7fc2ce71e655114535ccf0803b4c78d4ef8e7500

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x0f5b78b1db2e7e12bd71b17d341ff21e9f5c6db3864e08bb3c1f3de22af96f9eGrant Role308896622022-07-19 7:33:21253 days 9 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.003779448752 31.728611564
0x84be902446b13a9157562071774313d16f183455ccfa27559182b2397ecbdbf6Update Treasury308837412022-07-19 3:48:02253 days 12 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.0011576152 39.20000003
0x94a52066928bca7ed0f3821b54eb3ddd338ee6a18919144da12b167f5d388730Set Commission F...308837182022-07-19 3:47:16253 days 12 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.0018163712 39.200000002
0x8cd333d7c5eb0207fbc62943e95c6783e7670028da5bc57747a51dc0ebbd5af9Grant Role298223952022-06-21 8:57:09281 days 7 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.003904478533 38.267946032
0x5c6d9fbeaa080b35a4f93d856cf4bfa04302ec57b455db17a5e5347377b389b7Unpause295497342022-06-14 8:00:36288 days 8 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.001850244575 76.276727365
0x20d773e8d6a84244ad502103d64735b79646aeb024302064a6419adb066bd50fGrant Role295497202022-06-14 8:00:08288 days 8 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.00238340014 73.832909143
0xb94eec87e3f6785c4ab889ae6c15596e66cf48bc42f6020bee1843fc5940d26bGrant Role294406222022-06-11 15:18:54291 days 1 hr ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.047652400
0x8fae0a8af66b370202de08c90b20850d5f4d1b797b5e2d9251b41841b16a8565Grant Role294281452022-06-11 8:03:14291 days 8 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  0x7fc2ce71e655114535ccf0803b4c78d4ef8e75000 MATIC0.007147860
0x4d4e64e6d67e967afd6937f3179a621ceea874fc270dbac3392a425bc15f0bef0x60806040293793172022-06-10 2:47:33292 days 13 hrs ago0x04a285427eee8ade8dce32299478e4522fb7c287 IN  Create: Governance0 MATIC0.1529126460
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Governance

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Governance_flat.sol
//SPDX-License-Identifier: Unlicense
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol


// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^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: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/access/IAccessControl.sol


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// File: @openzeppelin/contracts/access/AccessControl.sol


// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;





/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/access/IAccessControlEnumerable.sol


// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

// File: @openzeppelin/contracts/access/AccessControlEnumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;




/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

// File: contracts/Governance.sol


pragma solidity ^0.8.0;


/**
   @title Governance contract
   @dev This contract is being used as Governance of MyMetaFarm
       + Register address (Treasury) to receive Commission Fee 
       + Set up additional special roles - DEFAULT_ADMIN_ROLE, MANAGER_ROLE and MINTER_ROLE
*/
contract Governance is AccessControlEnumerable {
    uint256 public constant FEE_DENOMINATOR = 10**4;
    uint256 public commissionFee; //  fee_rate = commissionFee / FEE_DENOMINATOR

    address public treasury;

    mapping(address => bool) public listOfNFTs; // Both NFT721 and NFT1155 include in the list
    mapping(address => bool) public blacklist;
    mapping(address => bool) public paymentTokens;

    bool public locked;
    bool public pausedTransfer;

    //  Declare Roles - MANAGER_ROLE and MINTER_ROLE
    //  There are three roles:
    //     - Top Gun = DEFAULT_ADMIN_ROLE:
    //          + Manages governance settings
    //          + Has an authority to grant/revoke other roles
    //          + Has an authority to set him/herself other roles
    //     - MANAGER_ROLE
    //          + Has an authority to do special tasks, i.e. settings
    //          + NFT Holder when Heroes/item are minted
    //     - AUTHENTICATOR
    //          + Has an authority to mint NFT items
    //          + Provide signature to authorize a request
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
    bytes32 public constant AUTHENTICATOR_ROLE =
        keccak256("AUTHENTICATOR_ROLE");
    bytes32 public constant MARKETPLACE = keccak256("MARKETPLACE");

    constructor(address _treasury, address[] memory _tokens) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        treasury = _treasury;
        pausedTransfer = true;
        uint256 _size = _tokens.length;
        for (uint256 i; i < _size; i++) paymentTokens[_tokens[i]] = true;
    }

    /**
       @notice Set `pausedTransfer = true`
       @dev  Caller must have DEFAULT_ADMIN_ROLE
    */
    function pause() external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(!pausedTransfer, "Paused");
        pausedTransfer = true;
    }

    /**
       @notice Set `pausedTransfer = false`
       @dev  Caller must have DEFAULT_ADMIN_ROLE
    */
    function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(pausedTransfer, "Unpause");
        pausedTransfer = false;
    }

    /**
       @notice Set `locked = true`
       @dev  Caller must have DEFAULT_ADMIN_ROLE
    */
    function lock() external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(!locked, "Locked");
        locked = true;
    }

    /**
       @notice Set `locked = false`
       @dev  Caller must have DEFAULT_ADMIN_ROLE
    */
    function unlock() external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(locked, "Unlocked");
        locked = false;
    }

    /**
       @notice Change new address of Treasury
       @dev  Caller must have DEFAULT_ADMIN_ROLE
       @param _newTreasury    Address of new Treasury
    */
    function updateTreasury(address _newTreasury)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(_newTreasury != address(0), "Set zero address");
        treasury = _newTreasury;
    }

    /**
       @notice Set/Update Commission Fee
       @dev  Caller must have MANAGER_ROLE
       @param _newRate          New fee rate of Commission Fee     
    */
    function setCommissionFee(uint256 _newRate)
        external
        onlyRole(MANAGER_ROLE)
    {
        require(_newRate < FEE_DENOMINATOR, "Invalid fee rate");
        commissionFee = _newRate;
    }

    /**
       @notice Register Payment Token (i.e. USDT, USDC, etc)
       @dev  Caller must have MANAGER_ROLE
       @param _token         Address of Token contract
    */
    function addPaymentToken(address _token) external onlyRole(MANAGER_ROLE) {
        require(_token != address(0), "Set zero address");
        require(!paymentTokens[_token], "Token already accepted");
        paymentTokens[_token] = true;
    }

    /**
       @notice Unregister Payment Token
       @dev  Caller must have MANAGER_ROLE
       @param _token         Address of Token contract
    */
    function removePaymentToken(address _token)
        external
        onlyRole(MANAGER_ROLE)
    {
        require(paymentTokens[_token], "Payment not recorded");
        paymentTokens[_token] = false;
    }

    /**
       @notice Register NFT Contract
       @dev  Caller must have MANAGER_ROLE
       @param _nftContr         Address of NFT Contract
    */
    function registerNFT(address _nftContr) external onlyRole(MANAGER_ROLE) {
        require(_nftContr != address(0), "Set zero address");
        require(!listOfNFTs[_nftContr], "Already added");
        listOfNFTs[_nftContr] = true;
    }

    /**
       @notice Unregister NFT Contract
       @dev  Caller must have MANAGER_ROLE
       @param _nftContr         Address of NFT Contract
    */
    function unregisterNFT(address _nftContr) external onlyRole(MANAGER_ROLE) {
        require(listOfNFTs[_nftContr], "Not found");
        listOfNFTs[_nftContr] = false;
    }

    /**
       @notice Add User's address into the blacklist
       @dev  Caller must have MANAGER_ROLE
       @param _account         Address of User that going to be blocked
    */
    function addBlacklist(address _account) external onlyRole(MANAGER_ROLE) {
        require(_account != address(0), "Set zero address");
        require(!blacklist[_account], "Account already in the blacklist");
        blacklist[_account] = true;
    }

    /**
       @notice Remove User's address out of the blacklist
       @dev  Caller must have MANAGER_ROLE
       @param _account         Address of User that going to be removed
    */
    function removeBlacklist(address _account) external onlyRole(MANAGER_ROLE) {
        require(blacklist[_account], "Account not in the blacklist");
        blacklist[_account] = false;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"AUTHENTICATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MARKETPLACE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"addPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commissionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"listOfNFTs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausedTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paymentTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContr","type":"address"}],"name":"registerNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"removePaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRate","type":"uint256"}],"name":"setCommissionFee","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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContr","type":"address"}],"name":"unregisterNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620030ed380380620030ed8339818101604052810190620000379190620004d1565b6200005b6000801b6200004f6200018260201b60201c565b6200018a60201b60201c565b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600760016101000a81548160ff02191690831515021790555060008151905060005b81811015620001785760016006600085848151811062000109577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200016f90620005f7565b915050620000c0565b50505050620006ce565b600033905090565b6200019c8282620001a060201b60201c565b5050565b620001b78282620001e860201b620014091760201c565b620001e38160016000858152602001908152602001600020620002d960201b620014e91790919060201c565b505050565b620001fa82826200031160201b60201c565b620002d557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200027a6200018260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000309836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200037b60201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006200038f8383620003f560201b60201c565b620003ea578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620003ef565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b60006200042f620004298462000554565b6200052b565b905080838252602082019050828560208602820111156200044f57600080fd5b60005b858110156200048357816200046888826200048d565b84526020840193506020830192505060018101905062000452565b5050509392505050565b6000815190506200049e81620006b4565b92915050565b600082601f830112620004b657600080fd5b8151620004c884826020860162000418565b91505092915050565b60008060408385031215620004e557600080fd5b6000620004f5858286016200048d565b925050602083015167ffffffffffffffff8111156200051357600080fd5b6200052185828601620004a4565b9150509250929050565b6000620005376200054a565b9050620005458282620005c1565b919050565b6000604051905090565b600067ffffffffffffffff82111562000572576200057162000674565b5b602082029050602081019050919050565b6000620005908262000597565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620005cc82620006a3565b810181811067ffffffffffffffff82111715620005ee57620005ed62000674565b5b80604052505050565b60006200060482620005b7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156200063a576200063962000645565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620006bf8162000583565b8114620006cb57600080fd5b50565b612a0f80620006de6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063a217fddf1161010f578063cf309012116100a2578063ec87621c11610071578063ec87621c14610569578063f83d08ba14610587578063f9f92be414610591578063ffef3cf0146105c1576101f0565b8063cf309012146104f5578063d547741f14610513578063d73792a91461052f578063eb91e6511461054d576101f0565b8063b7684a71116100de578063b7684a711461045b578063c3b88b4214610477578063ca15c873146104a7578063cdae1104146104d7576101f0565b8063a217fddf146103f9578063a512542114610417578063a69df4b514610433578063b65c5e8d1461043d576101f0565b80636fb1eb0c116101875780639010d07c116101565780639010d07c1461034d57806391d148541461037d57806398a6ce4e146103ad5780639cfe42da146103dd576101f0565b80636fb1eb0c146102ed5780637f51bb1f1461030b5780638456cb5914610327578063895860e514610331576101f0565b80633f4ba83a116101c35780633f4ba83a1461028d5780634a7dc8e01461029757806361d027b3146102b35780636aaf1f38146102d1576101f0565b806301ffc9a7146101f5578063248a9ca3146102255780632f2ff15d1461025557806336568abe14610271575b600080fd5b61020f600480360381019061020a9190611ef1565b6105df565b60405161021c919061226e565b60405180910390f35b61023f600480360381019061023a9190611e50565b610659565b60405161024c9190612289565b60405180910390f35b61026f600480360381019061026a9190611e79565b610678565b005b61028b60048036038101906102869190611e79565b610699565b005b61029561071c565b005b6102b160048036038101906102ac9190611e27565b610796565b005b6102bb610919565b6040516102c89190612253565b60405180910390f35b6102eb60048036038101906102e69190611e27565b61093f565b005b6102f5610ac2565b6040516103029190612486565b60405180910390f35b61032560048036038101906103209190611e27565b610ac8565b005b61032f610b8a565b005b61034b60048036038101906103469190611f1a565b610c05565b005b61036760048036038101906103629190611eb5565b610c7e565b6040516103749190612253565b60405180910390f35b61039760048036038101906103929190611e79565b610cad565b6040516103a4919061226e565b60405180910390f35b6103c760048036038101906103c29190611e27565b610d17565b6040516103d4919061226e565b60405180910390f35b6103f760048036038101906103f29190611e27565b610d37565b005b610401610eba565b60405161040e9190612289565b60405180910390f35b610431600480360381019061042c9190611e27565b610ec1565b005b61043b610fd3565b005b61044561104d565b6040516104529190612289565b60405180910390f35b61047560048036038101906104709190611e27565b611071565b005b610491600480360381019061048c9190611e27565b611183565b60405161049e919061226e565b60405180910390f35b6104c160048036038101906104bc9190611e50565b6111a3565b6040516104ce9190612486565b60405180910390f35b6104df6111c7565b6040516104ec919061226e565b60405180910390f35b6104fd6111da565b60405161050a919061226e565b60405180910390f35b61052d60048036038101906105289190611e79565b6111ed565b005b61053761120e565b6040516105449190612486565b60405180910390f35b61056760048036038101906105629190611e27565b611214565b005b610571611326565b60405161057e9190612289565b60405180910390f35b61058f61134a565b005b6105ab60048036038101906105a69190611e27565b6113c5565b6040516105b8919061226e565b60405180910390f35b6105c96113e5565b6040516105d69190612289565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610652575061065182611519565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b61068182610659565b61068a81611593565b61069483836115a7565b505050565b6106a16115db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461070e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070590612466565b60405180910390fd5b61071882826115e3565b5050565b6000801b61072981611593565b600760019054906101000a900460ff16610778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076f906122e6565b60405180910390fd5b6000600760016101000a81548160ff02191690831515021790555050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086107c081611593565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082790612386565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156108bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b490612366565b60405180910390fd5b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861096981611593565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d090612386565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5d90612406565b60405180910390fd5b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60025481565b6000801b610ad581611593565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3c90612386565b60405180910390fd5b81600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b610b9781611593565b600760019054906101000a900460ff1615610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde90612306565b60405180910390fd5b6001600760016101000a81548160ff02191690831515021790555050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610c2f81611593565b6127108210610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a906123c6565b60405180910390fd5b816002819055505050565b6000610ca5826001600086815260200190815260200160002061161790919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60046020528060005260406000206000915054906101000a900460ff1681565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610d6181611593565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890612386565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e55906123a6565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000801b81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610eeb81611593565b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90612446565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000801b610fe081611593565b600760009054906101000a900460ff1661102f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102690612426565b60405180910390fd5b6000600760006101000a81548160ff02191690831515021790555050565b7f190acb99f29d9641c9ad47655049f2d7c78fcbc837d62e7981d28c871f72208181565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861109b81611593565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111e90612346565b60405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60066020528060005260406000206000915054906101000a900460ff1681565b60006111c060016000848152602001908152602001600020611631565b9050919050565b600760019054906101000a900460ff1681565b600760009054906101000a900460ff1681565b6111f682610659565b6111ff81611593565b61120983836115e3565b505050565b61271081565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861123e81611593565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c1906123e6565b60405180910390fd5b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b6000801b61135781611593565b600760009054906101000a900460ff16156113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90612326565b60405180910390fd5b6001600760006101000a81548160ff02191690831515021790555050565b60056020528060005260406000206000915054906101000a900460ff1681565b7f5b577a23637c13751ced46fd085304741466978bcfbb8d8caed77b00e4d78c2c81565b6114138282610cad565b6114e557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061148a6115db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611511836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611646565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061158c575061158b826116b6565b5b9050919050565b6115a48161159f6115db565b611720565b50565b6115b18282611409565b6115d681600160008581526020019081526020016000206114e990919063ffffffff16565b505050565b600033905090565b6115ed82826117bd565b611612816001600085815260200190815260200160002061189e90919063ffffffff16565b505050565b600061162683600001836118ce565b60001c905092915050565b600061163f8260000161191f565b9050919050565b60006116528383611930565b6116ab5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506116b0565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61172a8282610cad565b6117b95761174f8173ffffffffffffffffffffffffffffffffffffffff166014611953565b61175d8360001c6020611953565b60405160200161176e929190612219565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b091906122a4565b60405180910390fd5b5050565b6117c78282610cad565b1561189a57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061183f6115db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006118c6836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611c4d565b905092915050565b600082600001828154811061190c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b606060006002836002611966919061251e565b61197091906124c8565b67ffffffffffffffff8111156119af577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119e15781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ac9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b09919061251e565b611b1391906124c8565b90505b6001811115611bff577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611b7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611bb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611bf89061265d565b9050611b16565b5060008414611c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3a906122c6565b60405180910390fd5b8091505092915050565b60008083600101600084815260200190815260200160002054905060008114611dc7576000600182611c7f9190612578565b9050600060018660000180549050611c979190612578565b9050818114611d52576000866000018281548110611cde577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110611d28577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611d8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611dcd565b60009150505b92915050565b600081359050611de28161297d565b92915050565b600081359050611df781612994565b92915050565b600081359050611e0c816129ab565b92915050565b600081359050611e21816129c2565b92915050565b600060208284031215611e3957600080fd5b6000611e4784828501611dd3565b91505092915050565b600060208284031215611e6257600080fd5b6000611e7084828501611de8565b91505092915050565b60008060408385031215611e8c57600080fd5b6000611e9a85828601611de8565b9250506020611eab85828601611dd3565b9150509250929050565b60008060408385031215611ec857600080fd5b6000611ed685828601611de8565b9250506020611ee785828601611e12565b9150509250929050565b600060208284031215611f0357600080fd5b6000611f1184828501611dfd565b91505092915050565b600060208284031215611f2c57600080fd5b6000611f3a84828501611e12565b91505092915050565b611f4c816125ac565b82525050565b611f5b816125be565b82525050565b611f6a816125ca565b82525050565b6000611f7b826124a1565b611f8581856124ac565b9350611f9581856020860161262a565b611f9e816126b6565b840191505092915050565b6000611fb4826124a1565b611fbe81856124bd565b9350611fce81856020860161262a565b80840191505092915050565b6000611fe76020836124ac565b9150611ff2826126c7565b602082019050919050565b600061200a6007836124ac565b9150612015826126f0565b602082019050919050565b600061202d6006836124ac565b915061203882612719565b602082019050919050565b60006120506006836124ac565b915061205b82612742565b602082019050919050565b60006120736009836124ac565b915061207e8261276b565b602082019050919050565b60006120966016836124ac565b91506120a182612794565b602082019050919050565b60006120b96010836124ac565b91506120c4826127bd565b602082019050919050565b60006120dc6020836124ac565b91506120e7826127e6565b602082019050919050565b60006120ff6010836124ac565b915061210a8261280f565b602082019050919050565b6000612122601c836124ac565b915061212d82612838565b602082019050919050565b6000612145600d836124ac565b915061215082612861565b602082019050919050565b60006121686008836124ac565b91506121738261288a565b602082019050919050565b600061218b6014836124ac565b9150612196826128b3565b602082019050919050565b60006121ae6017836124bd565b91506121b9826128dc565b601782019050919050565b60006121d16011836124bd565b91506121dc82612905565b601182019050919050565b60006121f4602f836124ac565b91506121ff8261292e565b604082019050919050565b61221381612620565b82525050565b6000612224826121a1565b91506122308285611fa9565b915061223b826121c4565b91506122478284611fa9565b91508190509392505050565b60006020820190506122686000830184611f43565b92915050565b60006020820190506122836000830184611f52565b92915050565b600060208201905061229e6000830184611f61565b92915050565b600060208201905081810360008301526122be8184611f70565b905092915050565b600060208201905081810360008301526122df81611fda565b9050919050565b600060208201905081810360008301526122ff81611ffd565b9050919050565b6000602082019050818103600083015261231f81612020565b9050919050565b6000602082019050818103600083015261233f81612043565b9050919050565b6000602082019050818103600083015261235f81612066565b9050919050565b6000602082019050818103600083015261237f81612089565b9050919050565b6000602082019050818103600083015261239f816120ac565b9050919050565b600060208201905081810360008301526123bf816120cf565b9050919050565b600060208201905081810360008301526123df816120f2565b9050919050565b600060208201905081810360008301526123ff81612115565b9050919050565b6000602082019050818103600083015261241f81612138565b9050919050565b6000602082019050818103600083015261243f8161215b565b9050919050565b6000602082019050818103600083015261245f8161217e565b9050919050565b6000602082019050818103600083015261247f816121e7565b9050919050565b600060208201905061249b600083018461220a565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b60006124d382612620565b91506124de83612620565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561251357612512612687565b5b828201905092915050565b600061252982612620565b915061253483612620565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561256d5761256c612687565b5b828202905092915050565b600061258382612620565b915061258e83612620565b9250828210156125a1576125a0612687565b5b828203905092915050565b60006125b782612600565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561264857808201518184015260208101905061262d565b83811115612657576000848401525b50505050565b600061266882612620565b9150600082141561267c5761267b612687565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f556e706175736500000000000000000000000000000000000000000000000000600082015250565b7f5061757365640000000000000000000000000000000000000000000000000000600082015250565b7f4c6f636b65640000000000000000000000000000000000000000000000000000600082015250565b7f4e6f7420666f756e640000000000000000000000000000000000000000000000600082015250565b7f546f6b656e20616c726561647920616363657074656400000000000000000000600082015250565b7f536574207a65726f206164647265737300000000000000000000000000000000600082015250565b7f4163636f756e7420616c726561647920696e2074686520626c61636b6c697374600082015250565b7f496e76616c696420666565207261746500000000000000000000000000000000600082015250565b7f4163636f756e74206e6f7420696e2074686520626c61636b6c69737400000000600082015250565b7f416c726561647920616464656400000000000000000000000000000000000000600082015250565b7f556e6c6f636b6564000000000000000000000000000000000000000000000000600082015250565b7f5061796d656e74206e6f74207265636f72646564000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b612986816125ac565b811461299157600080fd5b50565b61299d816125ca565b81146129a857600080fd5b50565b6129b4816125d4565b81146129bf57600080fd5b50565b6129cb81612620565b81146129d657600080fd5b5056fea2646970667358221220453b6c20d3826a6312fb21441f078535772be2d46b3b3ef42eca32ea4bac942364736f6c63430008040033000000000000000000000000dbe2c0929d76a12621d6318a8de8015a6de9d0d500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c6b6256393f2b49763cf6e242733571453e479e9

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

000000000000000000000000dbe2c0929d76a12621d6318a8de8015a6de9d0d500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c6b6256393f2b49763cf6e242733571453e479e9

-----Decoded View---------------
Arg [0] : _treasury (address): 0xdbe2c0929d76a12621d6318a8de8015a6de9d0d5
Arg [1] : _tokens (address[]): 0xc6b6256393f2b49763cf6e242733571453e479e9

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000dbe2c0929d76a12621d6318a8de8015a6de9d0d5
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 000000000000000000000000c6b6256393f2b49763cf6e242733571453e479e9


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.