Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Gen Ticke... | 13486819 | 1087 days ago | IN | 0 ETH | 0.26654946 | ||||
Create Gen Ticke... | 13467695 | 1090 days ago | IN | 0 ETH | 0.26160781 | ||||
Create Gen Ticke... | 13467295 | 1090 days ago | IN | 0 ETH | 0.16541009 | ||||
Create Gen Ticke... | 13427117 | 1096 days ago | IN | 0 ETH | 0.35353282 | ||||
Create Gen Ticke... | 13275972 | 1120 days ago | IN | 0 ETH | 0.17344468 | ||||
Create Gen Ticke... | 13275933 | 1120 days ago | IN | 0 ETH | 0.15765486 | ||||
Create Gen Ticke... | 13275548 | 1120 days ago | IN | 0 ETH | 0.15065374 | ||||
Create Gen Ticke... | 13275361 | 1120 days ago | IN | 0 ETH | 0.14216198 | ||||
Create Gen Ticke... | 13241292 | 1125 days ago | IN | 0 ETH | 0.1842345 | ||||
Create Gen Ticke... | 12766988 | 1199 days ago | IN | 0 ETH | 0.03191358 | ||||
Create Gen Ticke... | 12678872 | 1213 days ago | IN | 0 ETH | 0.19880675 | ||||
Create Gen Ticke... | 12627937 | 1221 days ago | IN | 0 ETH | 0.04852677 | ||||
Create Gen Ticke... | 12597102 | 1226 days ago | IN | 0 ETH | 0.08763643 | ||||
Create Gen Ticke... | 12531163 | 1236 days ago | IN | 0 ETH | 0.1663798 | ||||
Create Gen Ticke... | 12521095 | 1237 days ago | IN | 0 ETH | 0.14538017 | ||||
Create Gen Ticke... | 12517252 | 1238 days ago | IN | 0 ETH | 0.1733135 | ||||
Create Gen Ticke... | 12517143 | 1238 days ago | IN | 0 ETH | 0.16638096 | ||||
Create Gen Ticke... | 12508425 | 1239 days ago | IN | 0 ETH | 0.14892603 | ||||
Create Gen Ticke... | 12452608 | 1248 days ago | IN | 0 ETH | 0.27729872 | ||||
Create Gen Ticke... | 12440335 | 1250 days ago | IN | 0 ETH | 0.3466222 | ||||
Create Gen Ticke... | 12420237 | 1253 days ago | IN | 0 ETH | 1.10382933 | ||||
Create Gen Ticke... | 12391785 | 1257 days ago | IN | 0 ETH | 0.24466668 | ||||
Create Gen Ticke... | 12391703 | 1257 days ago | IN | 0 ETH | 0.19500833 | ||||
Set Fee To Sette... | 12235821 | 1282 days ago | IN | 0 ETH | 0.00329335 | ||||
Create Gen Ticke... | 12168551 | 1292 days ago | IN | 0 ETH | 0.8202024 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Contract Name:
GenFactory
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-02 */ // File: @openzeppelin/contracts/introspection/ERC165Checker.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { // success determines whether the staticcall succeeded and result determines // whether the contract at account indicates support of _interfaceId (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId); return (success && result); } /** * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return success true if the STATICCALL succeeded, false otherwise * @return result true if the STATICCALL succeeded and the contract at account * indicates support of the interface with identifier interfaceId, false otherwise */ function _callERC165SupportsInterface(address account, bytes4 interfaceId) private view returns (bool, bool) { bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId); (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams); if (result.length < 32) return (false, false); return (success, abi.decode(result, (bool))); } } // File: @openzeppelin/contracts/introspection/IERC165.sol 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: @openzeppelin/contracts/token/ERC1155/IERC1155.sol pragma solidity >=0.6.2 <0.8.0; /** * @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: @openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol pragma solidity >=0.6.0 <0.8.0; /** * _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: @openzeppelin/contracts/utils/Context.sol 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: @openzeppelin/contracts/introspection/ERC165.sol pragma solidity >=0.6.0 <0.8.0; /** * @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; } } // File: @openzeppelin/contracts/math/SafeMath.sol 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: @openzeppelin/contracts/utils/Address.sol 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: @openzeppelin/contracts/token/ERC1155/ERC1155.sol pragma solidity >=0.6.0 <0.8.0; /** * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using SafeMath for uint256; using Address for address; // Mapping from token ID to account balances mapping (uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping (address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /* * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4 * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6 * * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^ * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26 */ bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26; /* * bytes4(keccak256('uri(uint256)')) == 0x0e89341c */ bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; /** * @dev See {_setURI}. */ constructor (string memory uri_) public { _setURI(uri_); // register the supported interfaces to conform to ERC1155 via ERC165 _registerInterface(_INTERFACE_ID_ERC1155); // register the supported interfaces to conform to ERC1155MetadataURI via ERC165 _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) external view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; _balances[id][from] = _balances[id][from].sub( amount, "ERC1155: insufficient balance for transfer" ); _balances[id][to] = _balances[id][to].add(amount); } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] = _balances[id][account].add(amount); emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]); } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); _balances[id][account] = _balances[id][account].sub( amount, "ERC1155: burn amount exceeds balance" ); emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][account] = _balances[ids[i]][account].sub( amounts[i], "ERC1155: burn amount exceeds balance" ); } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { } function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } } // File: @openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol pragma solidity >=0.6.0 <0.8.0; /** * @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: contracts/interfaces/IGenFactory.sol pragma solidity >=0.5.0; interface IGenFactory { event TicketCreated(address indexed caller, address indexed genTicket); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getGenTicket(address) external view returns (uint); function genTickets(uint) external view returns (address); function genTicketsLength() external view returns (uint); function createGenTicket( address _underlyingToken, uint256[] memory _numTickets, uint256[] memory _ticketSizes, uint[] memory _totalTranches, uint[] memory _cliffTranches, uint[] memory _trancheLength, string memory _uri ) external returns (address); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/GenTickets.sol pragma solidity 0.6.12; //import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; contract GenTickets is ERC1155, ERC1155Receiver { using SafeMath for uint; //using SafeERC20 for IERC20; struct GenTicket { uint256 numTickets; uint256 ticketSize; uint totalTranches; uint cliffTranches; // In days uint trancheLength; // Each non-cliff tranche gets ticketsize / (total tranches - cliff tranches) } // Ticket id mod numTicketTypes determines tier // Ticket id div numTicketTypes determines tranche of ticket // When ticket is swapped in for tokens, the next ticket is minted to the user address public underlyingToken; mapping(uint256 => GenTicket) public genTickets; uint8 public numTicketTypes; IGenFactory public factory; address public issuer; bool public active = false; uint256 public balanceNeeded = 0; // Expected TGE timestamp, start at max uint256 uint public TGE = type(uint).max; bytes private constant VALIDATOR = bytes('JC'); constructor ( address _underlyingToken, uint256[] memory _numTickets, uint256[] memory _ticketSizes, uint[] memory _totalTranches, uint[] memory _cliffTranches, uint[] memory _trancheLength, string memory _uri, IGenFactory _factory, address _issuer ) public ERC1155(_uri) { underlyingToken = _underlyingToken; factory = _factory; issuer = _issuer; for (uint8 i = 0; i < 50; i++){ if (_numTickets.length == i){ numTicketTypes = i; break; } balanceNeeded += _numTickets[i].mul(_ticketSizes[i]); genTickets[i] = GenTicket(_numTickets[i], _ticketSizes[i], _totalTranches[i], _cliffTranches[i], _trancheLength[i]); } } function updateTGE(uint timestamp) external { require(msg.sender == issuer, "GenTickets: Only issuer can update TGE"); require(getBlockTimestamp() < TGE, "GenTickets: TGE already occurred"); require(getBlockTimestamp() < timestamp, "GenTickets: New TGE must be in the future"); // Determine whether we want to restrict this or not //require(!active, "Tokens are already active"); TGE = timestamp; } function issue(address _to) external { require(msg.sender == issuer, "GenTickets: Only issuer can issue the tokens"); require(!active, "GenTickets: Token is already active"); //require(IERC20(underlyingToken).balanceOf(address(this)) >= balanceNeeded, "GenTickets: Deposit more of the underlying tokens"); IERC20(underlyingToken).transferFrom(msg.sender, address(this), balanceNeeded); address feeTo = factory.feeTo(); bytes memory data; for (uint8 i = 0; i < 50; i++){ if (numTicketTypes == i){ break; } GenTicket memory ticketType = genTickets[i]; uint256 feeAmount = 0; if (feeTo != address(0)) { // 1% of tickets generated is sent to feeTo address feeAmount = ticketType.numTickets.div(100); if (feeAmount == 0) { feeAmount = 1; } _mint(feeTo, i, feeAmount, data); } _mint(_to, i, ticketType.numTickets - feeAmount, data); } active = true; } function redeemTicket(address _to, uint256 _id, uint256 _amount) public { uint tier = _id.mod(numTicketTypes); GenTicket memory ticketType = genTickets[tier]; // Check that we are past the cliff period for this ticket type require(getBlockTimestamp() > ticketType.trancheLength.mul(ticketType.cliffTranches).add(TGE), "GenTickets: Ticket is still within cliff period"); // Tranche past cliff uint tranche = _id.div(numTicketTypes); require(getBlockTimestamp() > ticketType.trancheLength.mul(ticketType.cliffTranches).add(ticketType.trancheLength.mul(tranche)).add(TGE), "GenTickets: Tokens for this ticket are being vested"); require(tranche < ticketType.totalTranches.sub(ticketType.cliffTranches), "GenTickets: Ticket has redeemed all tokens"); safeTransferFrom(address(msg.sender), address(this), _id, _amount, VALIDATOR); // Transfer underlying tokens with corresponding ticket size IERC20(underlyingToken).transfer(_to, _amount.mul(ticketType.ticketSize).div(ticketType.totalTranches.sub(ticketType.cliffTranches))); bytes memory data; _mint(_to, _id.add(numTicketTypes), _amount, data); } function getBlockTimestamp() internal view returns (uint) { // solium-disable-next-line security/no-block-members return block.timestamp; } /** * ERC1155 Token ERC1155Receiver */ function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) override external returns(bytes4) { if(keccak256(_data) == keccak256(VALIDATOR)){ return 0xf23a6e61; } } function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) override external returns(bytes4) { if(keccak256(_data) == keccak256(VALIDATOR)){ return 0xbc197c81; } } } // File: contracts/GenFactory.sol pragma solidity 0.6.12; contract GenFactory is IGenFactory { using SafeMath for uint; // Address that receives fees address public override feeTo; // Address that gets to set the feeTo address address public override feeToSetter; // List of genToken addresses address[] public override genTickets; mapping(address => uint) public override getGenTicket; event TicketCreated(address indexed caller, address indexed genTicket); function genTicketsLength() external override view returns (uint) { return genTickets.length; } constructor(address _feeToSetter) public { feeToSetter = _feeToSetter; } function createGenTicket( address _underlyingToken, uint256[] memory _numTickets, uint256[] memory _ticketSizes, uint[] memory _totalTranches, uint[] memory _cliffTranches, uint[] memory _trancheLength, string memory _uri ) external override returns (address) { require(_numTickets.length < 10, 'GenFactory: MAX NUMBER OF TICKETS'); require(_numTickets.length == _ticketSizes.length && _ticketSizes.length == _totalTranches.length && _totalTranches.length == _cliffTranches.length && _cliffTranches.length == _trancheLength.length, 'GenFactory: ARRAY SIZE MISMATCH'); //address issuer = msg.sender; GenTickets gt = new GenTickets(_underlyingToken, _numTickets, _ticketSizes, _totalTranches, _cliffTranches, _trancheLength, _uri, this, msg.sender); // Populate mapping getGenTicket[address(gt)] = genTickets.length; // Add to list genTickets.push(address(gt)); emit TicketCreated(msg.sender, address(gt)); return address(gt); } function setFeeTo(address _feeTo) external override { require(msg.sender == feeToSetter, 'GenFactory: FORBIDDEN'); feeTo = _feeTo; } function setFeeToSetter(address _feeToSetter) external override { require(msg.sender == feeToSetter, 'GenFactory: FORBIDDEN'); feeToSetter = _feeToSetter; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"genTicket","type":"address"}],"name":"TicketCreated","type":"event"},{"inputs":[{"internalType":"address","name":"_underlyingToken","type":"address"},{"internalType":"uint256[]","name":"_numTickets","type":"uint256[]"},{"internalType":"uint256[]","name":"_ticketSizes","type":"uint256[]"},{"internalType":"uint256[]","name":"_totalTranches","type":"uint256[]"},{"internalType":"uint256[]","name":"_cliffTranches","type":"uint256[]"},{"internalType":"uint256[]","name":"_trancheLength","type":"uint256[]"},{"internalType":"string","name":"_uri","type":"string"}],"name":"createGenTicket","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genTickets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genTicketsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getGenTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051614ebc380380614ebc8339818101604052602081101561003357600080fd5b810190808051906020019092919050505080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050614e27806100956000396000f3fe60806040523480156200001157600080fd5b5060043610620000945760003560e01c8063a2e74af61162000063578063a2e74af61462000180578063f46901ed14620001c7578063f83a9869146200020e578063feb0940b146200060c5762000094565b8063017e7e58146200009957806308647d9114620000cf578063094b741514620000ef5780637145a6b21462000125575b600080fd5b620000a362000667565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b620000d96200068b565b6040518082815260200191505060405180910390f35b620000f962000698565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b62000154600480360360208110156200013d57600080fd5b8101908080359060200190929190505050620006be565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b620001c5600480360360208110156200019857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050620006fb565b005b6200020c60048036036020811015620001df57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505062000803565b005b620005e0600480360360e08110156200022657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156200026457600080fd5b8201836020820111156200027757600080fd5b803590602001918460208302840111640100000000831117156200029a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115620002fb57600080fd5b8201836020820111156200030e57600080fd5b803590602001918460208302840111640100000000831117156200033157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200039257600080fd5b820183602082011115620003a557600080fd5b80359060200191846020830284011164010000000083111715620003c857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200042957600080fd5b8201836020820111156200043c57600080fd5b803590602001918460208302840111640100000000831117156200045f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115620004c057600080fd5b820183602082011115620004d357600080fd5b80359060200191846020830284011164010000000083111715620004f657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200055757600080fd5b8201836020820111156200056a57600080fd5b803590602001918460018302840111640100000000831117156200058d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506200090a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b62000651600480360360208110156200062457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505062000d93565b6040518082815260200191505060405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600280549050905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028181548110620006cc57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620007bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f47656e466163746f72793a20464f5242494444454e000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620008c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f47656e466163746f72793a20464f5242494444454e000000000000000000000081525060200191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a87511062000968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018062004dd16021913960400191505060405180910390fd5b855187511480156200097b575084518651145b801562000989575083518551145b801562000997575082518451145b62000a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f47656e466163746f72793a2041525241592053495a45204d49534d415443480081525060200191505060405180910390fd5b600088888888888888303360405162000a239062000dab565b808a73ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001806020018060200180602001806020018973ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187810387528f818151815260200191508051906020019060200280838360005b8381101562000acd57808201518184015260208101905062000ab0565b5050505090500187810386528e818151815260200191508051906020019060200280838360005b8381101562000b1157808201518184015260208101905062000af4565b5050505090500187810385528d818151815260200191508051906020019060200280838360005b8381101562000b5557808201518184015260208101905062000b38565b5050505090500187810384528c818151815260200191508051906020019060200280838360005b8381101562000b9957808201518184015260208101905062000b7c565b5050505090500187810383528b818151815260200191508051906020019060200280838360005b8381101562000bdd57808201518184015260208101905062000bc0565b5050505090500187810382528a818151815260200191508051906020019080838360005b8381101562000c1e57808201518184015260208101905062000c01565b50505050905090810190601f16801562000c4c5780820380516001836020036101000a031916815260200191505b509f50505050505050505050505050505050604051809103906000f08015801562000c7b573d6000803e3d6000fd5b509050600280549050600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f06fc06f67fb05203b463f5748557476bb73e3e18256f04a7b63f31ae43a4c6f360405160405180910390a380915050979650505050505050565b60036020528060005260406000206000915090505481565b6140178062000dba8339019056fe60806040526000600760146101000a81548160ff02191690831515021790555060006008557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6009553480156200005557600080fd5b50604051620040173803806200401783398181016040526101208110156200007c57600080fd5b810190808051906020019092919080516040519392919084640100000000821115620000a757600080fd5b83820191506020820185811115620000be57600080fd5b8251866020820283011164010000000082111715620000dc57600080fd5b8083526020830192505050908051906020019060200280838360005b8381101562000115578082015181840152602081019050620000f8565b50505050905001604052602001805160405193929190846401000000008211156200013f57600080fd5b838201915060208201858111156200015657600080fd5b82518660208202830111640100000000821117156200017457600080fd5b8083526020830192505050908051906020019060200280838360005b83811015620001ad57808201518184015260208101905062000190565b5050505090500160405260200180516040519392919084640100000000821115620001d757600080fd5b83820191506020820185811115620001ee57600080fd5b82518660208202830111640100000000821117156200020c57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156200024557808201518184015260208101905062000228565b50505050905001604052602001805160405193929190846401000000008211156200026f57600080fd5b838201915060208201858111156200028657600080fd5b8251866020820283011164010000000082111715620002a457600080fd5b8083526020830192505050908051906020019060200280838360005b83811015620002dd578082015181840152602081019050620002c0565b50505050905001604052602001805160405193929190846401000000008211156200030757600080fd5b838201915060208201858111156200031e57600080fd5b82518660208202830111640100000000821117156200033c57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156200037557808201518184015260208101905062000358565b50505050905001604052602001805160405193929190846401000000008211156200039f57600080fd5b83820191506020820185811115620003b657600080fd5b8251866001820283011164010000000082111715620003d457600080fd5b8083526020830192505050908051906020019080838360005b838110156200040a578082015181840152602081019050620003ed565b50505050905090810190601f168015620004385780820380516001836020036101000a031916815260200191505b506040526020018051906020019092919080519060200190929190505050826200046f6301ffc9a760e01b6200072d60201b60201c565b62000480816200083660201b60201c565b6200049863d9b67a2660e01b6200072d60201b60201c565b620004b0630e89341c60e01b6200072d60201b60201c565b50620004d263bc197c8160e01b63f23a6e6160e01b186200072d60201b60201c565b88600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b60328160ff1610156200071d578060ff1689511415620005d35780600660006101000a81548160ff021916908360ff1602179055506200071d565b6200061b888260ff1681518110620005e757fe5b60200260200101518a8360ff1681518110620005ff57fe5b60200260200101516200085260201b6200257c1790919060201c565b6008600082825401925050819055506040518060a001604052808a8360ff16815181106200064557fe5b60200260200101518152602001898360ff16815181106200066257fe5b60200260200101518152602001888360ff16815181106200067f57fe5b60200260200101518152602001878360ff16815181106200069c57fe5b60200260200101518152602001868360ff1681518110620006b957fe5b6020026020010151815250600560008360ff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050808060010191505062000598565b5050505050505050505062000983565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620007ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b80600390805190602001906200084e929190620008dd565b5050565b600080831415620008675760009050620008d7565b60008284029050828482816200087957fe5b0414620008d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018062003ff66021913960400191505060405180910390fd5b809150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200092057805160ff191683800117855562000951565b8280016001018555821562000951579182015b828111156200095057825182559160200191906001019062000933565b5b50905062000960919062000964565b5090565b5b808211156200097f57600081600090555060010162000965565b5090565b61366380620009936000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063833ce3e1116100b8578063c45a01551161007c578063c45a015514610a1f578063e118658b14610a53578063e985e9c514610a74578063ed61cc9514610aee578063f23a6e6114610b0c578063f242432a14610c0c57610136565b8063833ce3e1146107955780638867596f146107c3578063a22cb465146107e1578063a27c282e14610831578063bc197c811461088957610136565b80632495a599116100ff5780632495a599146102fb5780632eb2c2d61461032f5780634e1273f4146105525780637145a6b2146106f357806371e928af1461075157610136565b8062fdd58e1461013b57806301ffc9a71461019d57806302fb0c5e146102005780630e89341c146102205780631d143848146102c7575b600080fd5b6101876004803603604081101561015157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d1b565b6040518082815260200191505060405180910390f35b6101e8600480360360208110156101b357600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610dfb565b60405180821515815260200191505060405180910390f35b610208610e62565b60405180821515815260200191505060405180910390f35b61024c6004803603602081101561023657600080fd5b8101908080359060200190929190505050610e75565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561028c578082015181840152602081019050610271565b50505050905090810190601f1680156102b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102cf610f19565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610303610f3f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610550600480360360a081101561034557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156103a257600080fd5b8201836020820111156103b457600080fd5b803590602001918460208302840111640100000000831117156103d657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561043657600080fd5b82018360208201111561044857600080fd5b8035906020019184602083028401116401000000008311171561046a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156104ca57600080fd5b8201836020820111156104dc57600080fd5b803590602001918460018302840111640100000000831117156104fe57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610f65565b005b61069c6004803603604081101561056857600080fd5b810190808035906020019064010000000081111561058557600080fd5b82018360208201111561059757600080fd5b803590602001918460208302840111640100000000831117156105b957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561061957600080fd5b82018360208201111561062b57600080fd5b8035906020019184602083028401116401000000008311171561064d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506113f0565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156106df5780820151818401526020810190506106c4565b505050509050019250505060405180910390f35b61071f6004803603602081101561070957600080fd5b8101908080359060200190929190505050611502565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6107936004803603602081101561076757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611538565b005b6107c1600480360360208110156107ab57600080fd5b810190808035906020019092919050505061191c565b005b6107cb611aa9565b6040518082815260200191505060405180910390f35b61082f600480360360408110156107f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611aaf565b005b6108876004803603606081101561084757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611c48565b005b6109ea600480360360a081101561089f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156108fc57600080fd5b82018360208201111561090e57600080fd5b8035906020019184602083028401116401000000008311171561093057600080fd5b90919293919293908035906020019064010000000081111561095157600080fd5b82018360208201111561096357600080fd5b8035906020019184602083028401116401000000008311171561098557600080fd5b9091929391929390803590602001906401000000008111156109a657600080fd5b8201836020820111156109b857600080fd5b803590602001918460018302840111640100000000831117156109da57600080fd5b9091929391929390505050612036565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b610a276120b6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a5b6120dc565b604051808260ff16815260200191505060405180910390f35b610ad660048036036040811015610a8a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120ef565b60405180821515815260200191505060405180910390f35b610af6612183565b6040518082815260200191505060405180910390f35b610bd7600480360360a0811015610b2257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610b9357600080fd5b820183602082011115610ba557600080fd5b80359060200191846001830284011164010000000083111715610bc757600080fd5b9091929391929390505050612189565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b610d19600480360360a0811015610c2257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610c9357600080fd5b820183602082011115610ca557600080fd5b80359060200191846001830284011164010000000083111715610cc757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612207565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806133f5602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b600760149054906101000a900460ff1681565b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f0d5780601f10610ee257610100808354040283529160200191610f0d565b820191906000526020600020905b815481529060010190602001808311610ef057829003601f168201915b50505050509050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8151835114610fbf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806135966028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611045576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806134496025913960400191505060405180910390fd5b61104d612602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061109357506110928561108d612602565b6120ef565b5b6110e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061346e6032913960400191505060405180910390fd5b60006110f2612602565b905061110281878787878761260a565b60005b84518110156112d357600085828151811061111c57fe5b60200260200101519050600085838151811061113457fe5b602002602001015190506111bb816040518060600160405280602a81526020016134a0602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126129092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611272816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611105565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611383578082015181840152602081019050611368565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156113c55780820151818401526020810190506113aa565b5050505090500194505050505060405180910390a46113e8818787878787612754565b505050505050565b6060815183511461144c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061356d6029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561146657600080fd5b506040519080825280602002602001820160405280156114955781602001602082028036833780820191505090505b50905060005b84518110156114f7576114d48582815181106114b357fe5b60200260200101518583815181106114c757fe5b6020026020010151610d1b565b8282815181106114e057fe5b60200260200101818152505080600101905061149b565b508091505092915050565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806135be602c913960400191505060405180910390fd5b600760149054906101000a900460ff1615611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061360b6023913960400191505060405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33306008546040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156116f757600080fd5b505af115801561170b573d6000803e3d6000fd5b505050506040513d602081101561172157600080fd5b8101908080519060200190929190505050506000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561179d57600080fd5b505afa1580156117b1573d6000803e3d6000fd5b505050506040513d60208110156117c757600080fd5b81019080805190602001909291905050509050606060005b60328160ff1610156118fb578060ff16600660009054906101000a900460ff1660ff16141561180d576118fb565b611815613213565b600560008360ff1681526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146118d7576118b760648360000151612ae390919063ffffffff16565b905060008114156118c757600190505b6118d6858460ff168387612b6c565b5b6118ec868460ff168385600001510387612b6c565b505080806001019150506117df565b506001600760146101000a81548160ff021916908315150217905550505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061351e6026913960400191505060405180910390fd5b6009546119cd612d6f565b10611a40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f47656e5469636b6574733a2054474520616c7265616479206f6363757272656481525060200191505060405180910390fd5b80611a49612d6f565b10611a9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806133cc6029913960400191505060405180910390fd5b8060098190555050565b60095481565b8173ffffffffffffffffffffffffffffffffffffffff16611ace612602565b73ffffffffffffffffffffffffffffffffffffffff161415611b3b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806135446029913960400191505060405180910390fd5b8060026000611b48612602565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611bf5612602565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000611c6f600660009054906101000a900460ff1660ff1684612d7790919063ffffffff16565b9050611c79613213565b600560008381526020019081526020016000206040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050611cfa600954611cec8360600151846080015161257c90919063ffffffff16565b6126cc90919063ffffffff16565b611d02612d6f565b11611d58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613373602f913960400191505060405180910390fd5b6000611d7f600660009054906101000a900460ff1660ff1686612ae390919063ffffffff16565b9050611dd8600954611dca611da184866080015161257c90919063ffffffff16565b611dbc8660600151876080015161257c90919063ffffffff16565b6126cc90919063ffffffff16565b6126cc90919063ffffffff16565b611de0612d6f565b11611e36576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806134eb6033913960400191505060405180910390fd5b611e5182606001518360400151612e0090919063ffffffff16565b8110611ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806133a2602a913960400191505060405180910390fd5b611eea333087876040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250612207565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87611f6c611f4786606001518760400151612e0090919063ffffffff16565b611f5e87602001518a61257c90919063ffffffff16565b612ae390919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611fbf57600080fd5b505af1158015611fd3573d6000803e3d6000fd5b505050506040513d6020811015611fe957600080fd5b810190808051906020019092919050505050606061202d87612026600660009054906101000a900460ff1660ff16896126cc90919063ffffffff16565b8784612b6c565b50505050505050565b60006040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250805190602001208383604051808383808284378083019250505092505050604051809103902014156120a95763bc197c8160e01b90506120aa565b5b98975050505050505050565b600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900460ff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60085481565b60006040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250805190602001208383604051808383808284378083019250505092505050604051809103902014156121fc5763f23a6e6160e01b90506121fd565b5b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561228d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806134496025913960400191505060405180910390fd5b612295612602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806122db57506122da856122d5612602565b6120ef565b5b612330576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806134206029913960400191505060405180910390fd5b600061233a612602565b905061235a81878761234b88612e83565b61235488612e83565b8761260a565b6123d7836040518060600160405280602a81526020016134a0602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126129092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061248e836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612574818787878787612ef3565b505050505050565b60008083141561258f57600090506125fc565b60008284029050828482816125a057fe5b04146125f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134ca6021913960400191505060405180910390fd5b809150505b92915050565b600033905090565b505050505050565b60008383111582906126bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612684578082015181840152602081019050612669565b50505050905090810190601f1680156126b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b60008082840190508381101561274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6127738473ffffffffffffffffffffffffffffffffffffffff16613200565b15612adb578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561282b578082015181840152602081019050612810565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561286d578082015181840152602081019050612852565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156128ac578082015181840152602081019050612891565b50505050905090810190601f1680156128d95780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156128fe57600080fd5b505af192505050801561293257506040513d602081101561291e57600080fd5b810190808051906020019092919050505060015b612a3c5761293e613260565b8061294957506129eb565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129b0578082015181840152602081019050612995565b50505050905090810190601f1680156129dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806133176034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ad9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061334b6028913960400191505060405180910390fd5b505b505050505050565b6000808211612b5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612b6357fe5b04905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bf2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135ea6021913960400191505060405180910390fd5b6000612bfc612602565b9050612c1d81600087612c0e88612e83565b612c1788612e83565b8761260a565b612c80836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612d6881600087878787612ef3565b5050505050565b600042905090565b6000808211612dee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525060200191505060405180910390fd5b818381612df757fe5b06905092915050565b600082821115612e78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b606080600167ffffffffffffffff81118015612e9e57600080fd5b50604051908082528060200260200182016040528015612ecd5781602001602082028036833780820191505090505b5090508281600081518110612ede57fe5b60200260200101818152505080915050919050565b612f128473ffffffffffffffffffffffffffffffffffffffff16613200565b156131f8578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612fcb578082015181840152602081019050612fb0565b50505050905090810190601f168015612ff85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561301b57600080fd5b505af192505050801561304f57506040513d602081101561303b57600080fd5b810190808051906020019092919050505060015b6131595761305b613260565b806130665750613108565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156130cd5780820151818401526020810190506130b2565b50505050905090810190601f1680156130fa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806133176034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146131f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061334b6028913960400191505060405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d101561327057613313565b60046000803e613281600051613253565b6308c379a081146132925750613313565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156132be57505050613313565b808201805167ffffffffffffffff8111156132dd575050505050613313565b8060208301013d85018111156132f857505050505050613313565b61330182613242565b60208401016040528296505050505050505b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7347656e5469636b6574733a205469636b6574206973207374696c6c2077697468696e20636c69666620706572696f6447656e5469636b6574733a205469636b6574206861732072656465656d656420616c6c20746f6b656e7347656e5469636b6574733a204e657720544745206d75737420626520696e2074686520667574757265455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e5469636b6574733a20546f6b656e7320666f722074686973207469636b657420617265206265696e672076657374656447656e5469636b6574733a204f6e6c79206973737565722063616e2075706461746520544745455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d6174636847656e5469636b6574733a204f6e6c79206973737565722063616e2069737375652074686520746f6b656e73455243313135353a206d696e7420746f20746865207a65726f206164647265737347656e5469636b6574733a20546f6b656e20697320616c726561647920616374697665a26469706673582212204da9b10f512cffac871beb7e3e6aeca836843f5ae3e9a973b75d0f548faac83564736f6c634300060c0033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e466163746f72793a204d4158204e554d424552204f46205449434b455453a2646970667358221220bbba08352b071bf89dbc5df52b8e12f57e1740bbd53448b3be2a33e82237b42864736f6c634300060c0033000000000000000000000000b452a14b387da9328c3a3f1ecd6e210b943614fa
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000945760003560e01c8063a2e74af61162000063578063a2e74af61462000180578063f46901ed14620001c7578063f83a9869146200020e578063feb0940b146200060c5762000094565b8063017e7e58146200009957806308647d9114620000cf578063094b741514620000ef5780637145a6b21462000125575b600080fd5b620000a362000667565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b620000d96200068b565b6040518082815260200191505060405180910390f35b620000f962000698565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b62000154600480360360208110156200013d57600080fd5b8101908080359060200190929190505050620006be565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b620001c5600480360360208110156200019857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050620006fb565b005b6200020c60048036036020811015620001df57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505062000803565b005b620005e0600480360360e08110156200022657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156200026457600080fd5b8201836020820111156200027757600080fd5b803590602001918460208302840111640100000000831117156200029a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115620002fb57600080fd5b8201836020820111156200030e57600080fd5b803590602001918460208302840111640100000000831117156200033157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200039257600080fd5b820183602082011115620003a557600080fd5b80359060200191846020830284011164010000000083111715620003c857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200042957600080fd5b8201836020820111156200043c57600080fd5b803590602001918460208302840111640100000000831117156200045f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115620004c057600080fd5b820183602082011115620004d357600080fd5b80359060200191846020830284011164010000000083111715620004f657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156200055757600080fd5b8201836020820111156200056a57600080fd5b803590602001918460018302840111640100000000831117156200058d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506200090a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b62000651600480360360208110156200062457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505062000d93565b6040518082815260200191505060405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600280549050905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028181548110620006cc57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620007bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f47656e466163746f72793a20464f5242494444454e000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620008c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f47656e466163746f72793a20464f5242494444454e000000000000000000000081525060200191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a87511062000968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018062004dd16021913960400191505060405180910390fd5b855187511480156200097b575084518651145b801562000989575083518551145b801562000997575082518451145b62000a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f47656e466163746f72793a2041525241592053495a45204d49534d415443480081525060200191505060405180910390fd5b600088888888888888303360405162000a239062000dab565b808a73ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001806020018060200180602001806020018973ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187810387528f818151815260200191508051906020019060200280838360005b8381101562000acd57808201518184015260208101905062000ab0565b5050505090500187810386528e818151815260200191508051906020019060200280838360005b8381101562000b1157808201518184015260208101905062000af4565b5050505090500187810385528d818151815260200191508051906020019060200280838360005b8381101562000b5557808201518184015260208101905062000b38565b5050505090500187810384528c818151815260200191508051906020019060200280838360005b8381101562000b9957808201518184015260208101905062000b7c565b5050505090500187810383528b818151815260200191508051906020019060200280838360005b8381101562000bdd57808201518184015260208101905062000bc0565b5050505090500187810382528a818151815260200191508051906020019080838360005b8381101562000c1e57808201518184015260208101905062000c01565b50505050905090810190601f16801562000c4c5780820380516001836020036101000a031916815260200191505b509f50505050505050505050505050505050604051809103906000f08015801562000c7b573d6000803e3d6000fd5b509050600280549050600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f06fc06f67fb05203b463f5748557476bb73e3e18256f04a7b63f31ae43a4c6f360405160405180910390a380915050979650505050505050565b60036020528060005260406000206000915090505481565b6140178062000dba8339019056fe60806040526000600760146101000a81548160ff02191690831515021790555060006008557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6009553480156200005557600080fd5b50604051620040173803806200401783398181016040526101208110156200007c57600080fd5b810190808051906020019092919080516040519392919084640100000000821115620000a757600080fd5b83820191506020820185811115620000be57600080fd5b8251866020820283011164010000000082111715620000dc57600080fd5b8083526020830192505050908051906020019060200280838360005b8381101562000115578082015181840152602081019050620000f8565b50505050905001604052602001805160405193929190846401000000008211156200013f57600080fd5b838201915060208201858111156200015657600080fd5b82518660208202830111640100000000821117156200017457600080fd5b8083526020830192505050908051906020019060200280838360005b83811015620001ad57808201518184015260208101905062000190565b5050505090500160405260200180516040519392919084640100000000821115620001d757600080fd5b83820191506020820185811115620001ee57600080fd5b82518660208202830111640100000000821117156200020c57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156200024557808201518184015260208101905062000228565b50505050905001604052602001805160405193929190846401000000008211156200026f57600080fd5b838201915060208201858111156200028657600080fd5b8251866020820283011164010000000082111715620002a457600080fd5b8083526020830192505050908051906020019060200280838360005b83811015620002dd578082015181840152602081019050620002c0565b50505050905001604052602001805160405193929190846401000000008211156200030757600080fd5b838201915060208201858111156200031e57600080fd5b82518660208202830111640100000000821117156200033c57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156200037557808201518184015260208101905062000358565b50505050905001604052602001805160405193929190846401000000008211156200039f57600080fd5b83820191506020820185811115620003b657600080fd5b8251866001820283011164010000000082111715620003d457600080fd5b8083526020830192505050908051906020019080838360005b838110156200040a578082015181840152602081019050620003ed565b50505050905090810190601f168015620004385780820380516001836020036101000a031916815260200191505b506040526020018051906020019092919080519060200190929190505050826200046f6301ffc9a760e01b6200072d60201b60201c565b62000480816200083660201b60201c565b6200049863d9b67a2660e01b6200072d60201b60201c565b620004b0630e89341c60e01b6200072d60201b60201c565b50620004d263bc197c8160e01b63f23a6e6160e01b186200072d60201b60201c565b88600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b60328160ff1610156200071d578060ff1689511415620005d35780600660006101000a81548160ff021916908360ff1602179055506200071d565b6200061b888260ff1681518110620005e757fe5b60200260200101518a8360ff1681518110620005ff57fe5b60200260200101516200085260201b6200257c1790919060201c565b6008600082825401925050819055506040518060a001604052808a8360ff16815181106200064557fe5b60200260200101518152602001898360ff16815181106200066257fe5b60200260200101518152602001888360ff16815181106200067f57fe5b60200260200101518152602001878360ff16815181106200069c57fe5b60200260200101518152602001868360ff1681518110620006b957fe5b6020026020010151815250600560008360ff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050808060010191505062000598565b5050505050505050505062000983565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620007ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b80600390805190602001906200084e929190620008dd565b5050565b600080831415620008675760009050620008d7565b60008284029050828482816200087957fe5b0414620008d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018062003ff66021913960400191505060405180910390fd5b809150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200092057805160ff191683800117855562000951565b8280016001018555821562000951579182015b828111156200095057825182559160200191906001019062000933565b5b50905062000960919062000964565b5090565b5b808211156200097f57600081600090555060010162000965565b5090565b61366380620009936000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063833ce3e1116100b8578063c45a01551161007c578063c45a015514610a1f578063e118658b14610a53578063e985e9c514610a74578063ed61cc9514610aee578063f23a6e6114610b0c578063f242432a14610c0c57610136565b8063833ce3e1146107955780638867596f146107c3578063a22cb465146107e1578063a27c282e14610831578063bc197c811461088957610136565b80632495a599116100ff5780632495a599146102fb5780632eb2c2d61461032f5780634e1273f4146105525780637145a6b2146106f357806371e928af1461075157610136565b8062fdd58e1461013b57806301ffc9a71461019d57806302fb0c5e146102005780630e89341c146102205780631d143848146102c7575b600080fd5b6101876004803603604081101561015157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d1b565b6040518082815260200191505060405180910390f35b6101e8600480360360208110156101b357600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610dfb565b60405180821515815260200191505060405180910390f35b610208610e62565b60405180821515815260200191505060405180910390f35b61024c6004803603602081101561023657600080fd5b8101908080359060200190929190505050610e75565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561028c578082015181840152602081019050610271565b50505050905090810190601f1680156102b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102cf610f19565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610303610f3f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610550600480360360a081101561034557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156103a257600080fd5b8201836020820111156103b457600080fd5b803590602001918460208302840111640100000000831117156103d657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561043657600080fd5b82018360208201111561044857600080fd5b8035906020019184602083028401116401000000008311171561046a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156104ca57600080fd5b8201836020820111156104dc57600080fd5b803590602001918460018302840111640100000000831117156104fe57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610f65565b005b61069c6004803603604081101561056857600080fd5b810190808035906020019064010000000081111561058557600080fd5b82018360208201111561059757600080fd5b803590602001918460208302840111640100000000831117156105b957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561061957600080fd5b82018360208201111561062b57600080fd5b8035906020019184602083028401116401000000008311171561064d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506113f0565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156106df5780820151818401526020810190506106c4565b505050509050019250505060405180910390f35b61071f6004803603602081101561070957600080fd5b8101908080359060200190929190505050611502565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6107936004803603602081101561076757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611538565b005b6107c1600480360360208110156107ab57600080fd5b810190808035906020019092919050505061191c565b005b6107cb611aa9565b6040518082815260200191505060405180910390f35b61082f600480360360408110156107f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611aaf565b005b6108876004803603606081101561084757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611c48565b005b6109ea600480360360a081101561089f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156108fc57600080fd5b82018360208201111561090e57600080fd5b8035906020019184602083028401116401000000008311171561093057600080fd5b90919293919293908035906020019064010000000081111561095157600080fd5b82018360208201111561096357600080fd5b8035906020019184602083028401116401000000008311171561098557600080fd5b9091929391929390803590602001906401000000008111156109a657600080fd5b8201836020820111156109b857600080fd5b803590602001918460018302840111640100000000831117156109da57600080fd5b9091929391929390505050612036565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b610a276120b6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a5b6120dc565b604051808260ff16815260200191505060405180910390f35b610ad660048036036040811015610a8a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120ef565b60405180821515815260200191505060405180910390f35b610af6612183565b6040518082815260200191505060405180910390f35b610bd7600480360360a0811015610b2257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610b9357600080fd5b820183602082011115610ba557600080fd5b80359060200191846001830284011164010000000083111715610bc757600080fd5b9091929391929390505050612189565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b610d19600480360360a0811015610c2257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610c9357600080fd5b820183602082011115610ca557600080fd5b80359060200191846001830284011164010000000083111715610cc757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612207565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806133f5602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b600760149054906101000a900460ff1681565b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f0d5780601f10610ee257610100808354040283529160200191610f0d565b820191906000526020600020905b815481529060010190602001808311610ef057829003601f168201915b50505050509050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8151835114610fbf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806135966028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611045576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806134496025913960400191505060405180910390fd5b61104d612602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061109357506110928561108d612602565b6120ef565b5b6110e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603281526020018061346e6032913960400191505060405180910390fd5b60006110f2612602565b905061110281878787878761260a565b60005b84518110156112d357600085828151811061111c57fe5b60200260200101519050600085838151811061113457fe5b602002602001015190506111bb816040518060600160405280602a81526020016134a0602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126129092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611272816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611105565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611383578082015181840152602081019050611368565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156113c55780820151818401526020810190506113aa565b5050505090500194505050505060405180910390a46113e8818787878787612754565b505050505050565b6060815183511461144c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061356d6029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561146657600080fd5b506040519080825280602002602001820160405280156114955781602001602082028036833780820191505090505b50905060005b84518110156114f7576114d48582815181106114b357fe5b60200260200101518583815181106114c757fe5b6020026020010151610d1b565b8282815181106114e057fe5b60200260200101818152505080600101905061149b565b508091505092915050565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806135be602c913960400191505060405180910390fd5b600760149054906101000a900460ff1615611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061360b6023913960400191505060405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33306008546040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156116f757600080fd5b505af115801561170b573d6000803e3d6000fd5b505050506040513d602081101561172157600080fd5b8101908080519060200190929190505050506000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561179d57600080fd5b505afa1580156117b1573d6000803e3d6000fd5b505050506040513d60208110156117c757600080fd5b81019080805190602001909291905050509050606060005b60328160ff1610156118fb578060ff16600660009054906101000a900460ff1660ff16141561180d576118fb565b611815613213565b600560008360ff1681526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146118d7576118b760648360000151612ae390919063ffffffff16565b905060008114156118c757600190505b6118d6858460ff168387612b6c565b5b6118ec868460ff168385600001510387612b6c565b505080806001019150506117df565b506001600760146101000a81548160ff021916908315150217905550505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061351e6026913960400191505060405180910390fd5b6009546119cd612d6f565b10611a40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f47656e5469636b6574733a2054474520616c7265616479206f6363757272656481525060200191505060405180910390fd5b80611a49612d6f565b10611a9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806133cc6029913960400191505060405180910390fd5b8060098190555050565b60095481565b8173ffffffffffffffffffffffffffffffffffffffff16611ace612602565b73ffffffffffffffffffffffffffffffffffffffff161415611b3b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806135446029913960400191505060405180910390fd5b8060026000611b48612602565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611bf5612602565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000611c6f600660009054906101000a900460ff1660ff1684612d7790919063ffffffff16565b9050611c79613213565b600560008381526020019081526020016000206040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050611cfa600954611cec8360600151846080015161257c90919063ffffffff16565b6126cc90919063ffffffff16565b611d02612d6f565b11611d58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613373602f913960400191505060405180910390fd5b6000611d7f600660009054906101000a900460ff1660ff1686612ae390919063ffffffff16565b9050611dd8600954611dca611da184866080015161257c90919063ffffffff16565b611dbc8660600151876080015161257c90919063ffffffff16565b6126cc90919063ffffffff16565b6126cc90919063ffffffff16565b611de0612d6f565b11611e36576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806134eb6033913960400191505060405180910390fd5b611e5182606001518360400151612e0090919063ffffffff16565b8110611ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806133a2602a913960400191505060405180910390fd5b611eea333087876040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250612207565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87611f6c611f4786606001518760400151612e0090919063ffffffff16565b611f5e87602001518a61257c90919063ffffffff16565b612ae390919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611fbf57600080fd5b505af1158015611fd3573d6000803e3d6000fd5b505050506040513d6020811015611fe957600080fd5b810190808051906020019092919050505050606061202d87612026600660009054906101000a900460ff1660ff16896126cc90919063ffffffff16565b8784612b6c565b50505050505050565b60006040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250805190602001208383604051808383808284378083019250505092505050604051809103902014156120a95763bc197c8160e01b90506120aa565b5b98975050505050505050565b600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900460ff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60085481565b60006040518060400160405280600281526020017f4a43000000000000000000000000000000000000000000000000000000000000815250805190602001208383604051808383808284378083019250505092505050604051809103902014156121fc5763f23a6e6160e01b90506121fd565b5b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561228d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806134496025913960400191505060405180910390fd5b612295612602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806122db57506122da856122d5612602565b6120ef565b5b612330576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806134206029913960400191505060405180910390fd5b600061233a612602565b905061235a81878761234b88612e83565b61235488612e83565b8761260a565b6123d7836040518060600160405280602a81526020016134a0602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126129092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061248e836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612574818787878787612ef3565b505050505050565b60008083141561258f57600090506125fc565b60008284029050828482816125a057fe5b04146125f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134ca6021913960400191505060405180910390fd5b809150505b92915050565b600033905090565b505050505050565b60008383111582906126bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612684578082015181840152602081019050612669565b50505050905090810190601f1680156126b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b60008082840190508381101561274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6127738473ffffffffffffffffffffffffffffffffffffffff16613200565b15612adb578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561282b578082015181840152602081019050612810565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561286d578082015181840152602081019050612852565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156128ac578082015181840152602081019050612891565b50505050905090810190601f1680156128d95780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156128fe57600080fd5b505af192505050801561293257506040513d602081101561291e57600080fd5b810190808051906020019092919050505060015b612a3c5761293e613260565b8061294957506129eb565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129b0578082015181840152602081019050612995565b50505050905090810190601f1680156129dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806133176034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ad9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061334b6028913960400191505060405180910390fd5b505b505050505050565b6000808211612b5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612b6357fe5b04905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bf2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135ea6021913960400191505060405180910390fd5b6000612bfc612602565b9050612c1d81600087612c0e88612e83565b612c1788612e83565b8761260a565b612c80836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126cc90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612d6881600087878787612ef3565b5050505050565b600042905090565b6000808211612dee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525060200191505060405180910390fd5b818381612df757fe5b06905092915050565b600082821115612e78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b606080600167ffffffffffffffff81118015612e9e57600080fd5b50604051908082528060200260200182016040528015612ecd5781602001602082028036833780820191505090505b5090508281600081518110612ede57fe5b60200260200101818152505080915050919050565b612f128473ffffffffffffffffffffffffffffffffffffffff16613200565b156131f8578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612fcb578082015181840152602081019050612fb0565b50505050905090810190601f168015612ff85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561301b57600080fd5b505af192505050801561304f57506040513d602081101561303b57600080fd5b810190808051906020019092919050505060015b6131595761305b613260565b806130665750613108565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156130cd5780820151818401526020810190506130b2565b50505050905090810190601f1680156130fa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806133176034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146131f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061334b6028913960400191505060405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d101561327057613313565b60046000803e613281600051613253565b6308c379a081146132925750613313565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156132be57505050613313565b808201805167ffffffffffffffff8111156132dd575050505050613313565b8060208301013d85018111156132f857505050505050613313565b61330182613242565b60208401016040528296505050505050505b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7347656e5469636b6574733a205469636b6574206973207374696c6c2077697468696e20636c69666620706572696f6447656e5469636b6574733a205469636b6574206861732072656465656d656420616c6c20746f6b656e7347656e5469636b6574733a204e657720544745206d75737420626520696e2074686520667574757265455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e5469636b6574733a20546f6b656e7320666f722074686973207469636b657420617265206265696e672076657374656447656e5469636b6574733a204f6e6c79206973737565722063616e2075706461746520544745455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d6174636847656e5469636b6574733a204f6e6c79206973737565722063616e2069737375652074686520746f6b656e73455243313135353a206d696e7420746f20746865207a65726f206164647265737347656e5469636b6574733a20546f6b656e20697320616c726561647920616374697665a26469706673582212204da9b10f512cffac871beb7e3e6aeca836843f5ae3e9a973b75d0f548faac83564736f6c634300060c0033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e466163746f72793a204d4158204e554d424552204f46205449434b455453a2646970667358221220bbba08352b071bf89dbc5df52b8e12f57e1740bbd53448b3be2a33e82237b42864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b452a14b387da9328c3a3f1ecd6e210b943614fa
-----Decoded View---------------
Arg [0] : _feeToSetter (address): 0xB452A14B387DA9328C3a3f1ECD6e210B943614FA
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b452a14b387da9328c3a3f1ecd6e210b943614fa
Deployed Bytecode Sourcemap
56322:2191:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56435:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;56809:109;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56528:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;56611:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;58331:179;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;58164:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;57024:1128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;56660:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56435:29;;;;;;;;;;;;:::o;56809:109::-;56869:4;56893:10;:17;;;;56886:24;;56809:109;:::o;56528:35::-;;;;;;;;;;;;;:::o;56611:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58331:179::-;58428:11;;;;;;;;;;;58414:25;;:10;:25;;;58406:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58490:12;58476:11;;:26;;;;;;;;;;;;;;;;;;58331:179;:::o;58164:155::-;58249:11;;;;;;;;;;;58235:25;;:10;:25;;;58227:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58305:6;58297:5;;:14;;;;;;;;;;;;;;;;;;58164:155;:::o;57024:1128::-;57344:7;57393:2;57372:11;:18;:23;57364:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57474:12;:19;57452:11;:18;:41;:99;;;;;57530:14;:21;57507:12;:19;:44;57452:99;:158;;;;;57589:14;:21;57564:14;:21;:46;57452:158;:217;;;;;57648:14;:21;57623:14;:21;:46;57452:217;57444:261;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57756:13;57787:16;57805:11;57818:12;57832:14;57848;57864;57880:4;57886;57892:10;57772:131;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57756:147;;57971:10;:17;;;;57943:12;:25;57964:2;57943:25;;;;;;;;;;;;;;;:45;;;;58023:10;58047:2;58023:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58101:2;58067:38;;58081:10;58067:38;;;;;;;;;;;;58141:2;58126:18;;;57024:1128;;;;;;;;;:::o;56660:53::-;;;;;;;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;:::o
Swarm Source
ipfs://bbba08352b071bf89dbc5df52b8e12f57e1740bbd53448b3be2a33e82237b428
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.